下载阿里云的CLI
https://github.com/aliyun/aliyun-cli/releases
wget https://github.com/aliyun/aliyun-cli/releases/download/v3.0.73/aliyun-cli-linux-3.0.73-amd64.tgz
tar zxvf aliyun-cli-linux-3.0.73-amd64.tgz
sudo cp aliyun /usr/local/bin
配置Aliyun管理界面添加accesskey API调用 添加ECS管理员权限。
aliyun configure --mode AK --profile akProfile
Configuring profile 'akProfile' in 'AK' authenticate mode...
Access Key Id []: xxxxxx # 填写对应的keyID
Access Key Secret []: xxxxx # 填写对应的密钥ID
Default Region Id []: cn-beijing
Default Output Format [json]: json (Only support json)
Default Language [zh|en] en: zh
Saving profile[akProfile] ...Done.
Configure Done!!!
..............888888888888888888888 ........=8888888888888888888D=..........