代码拉取完成,页面将自动刷新
This repository provides the source files to create a Docker image to run Aliyun CLI commands. It embeds too the Serverless Framework and Node.js.
To build the image:
docker build -t devopstestlab/aliyun-cli .
To use this Docker image, you should follow two steps:
docker run -v $PWD/data:/root/.aliyun cli aliyun configure set --profile akProfile --mode AK --region eu-central-1 --access-key-id <ACCESS_KEY_ID> --access-key-secret <ACCESS_KEY_SECRET>
<ACCESS_KEY_ID>
and <ACCESS_KEY_SECRET>
are the credentials provided by Alibaba Cloud when you create an user with a programmatic access.
A credentials file is created in the ./data/config.json
file.
docker run -v $PWD/data:/root/.aliyun:ro cli aliyun ecs DescribeRegions
It's a choice to store the credentials, with advantages and disadvantages. This way to do is very practical when you don't want to use interactive commands, for example for CI/CD.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。