- Python 2.7
pip install aliyun-python-sdk-core
curl -LOk https://github.com/zhongl/aliyun-ansible-inventory/raw/master/aliecs.py
chmod u+x aliecs.py
ALIYUN_ACCESS_KEY=${YOUR_ACCESS_KEY} ALIYUN_ACCESS_SECRET=${YOUR_ACCESS_SECRET} ./aliecs.py --list
ALIYUN_ACCESS_KEY
, default isUNSET
;ALIYUN_ACCESS_SECRET
, default isUNSET
;ALIYUN_REGION_ID
, default iscn-hangzhou
;ALIYUN_PAGE_SIZE
, default is100
.