1 Star 0 Fork 0

BrunoDelb / docker-aliyun-cli

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

docker-aliyun-cli

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.

Build

To build the image:

docker build -t devopstestlab/aliyun-cli .

Usage

To use this Docker image, you should follow two steps:

  • create the credentials file:
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.

  • execute aliyun-cli command by providing the credentials 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.

空文件

简介

Build Docker image for aliyun-cli for Alibaba Cloud Visit my blog about DevOps: http://www.devopstestlab.com 展开 收起
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/brunodelb/docker-aliyun-cli.git
git@gitee.com:brunodelb/docker-aliyun-cli.git
brunodelb
docker-aliyun-cli
docker-aliyun-cli
master

搜索帮助

14c37bed 8189591 565d56ea 8189591