项目作者: cn-docker

项目描述 :
AWS Cli Docker Image
高级语言: Dockerfile
项目地址: git://github.com/cn-docker/awscli.git
创建时间: 2019-11-13T16:46:11Z
项目社区:https://github.com/cn-docker/awscli

开源协议:Apache License 2.0

下载


AWS Cli Docker Image









Image containing the AWS Cli executable.

Usage

The image is ready to execute AWS Cli commands like:

  1. docker run cnservices/aws-cli <COMMAND>

To provide AWS credentials you have two alternatives:

Using environment variables

You can use environment the variables to authenticate the AWS Cli.

  1. docker run --env AWS_ACCESS_KEY_ID=<YOUR_ACCESS_KEY> --env AWS_SECRET_ACCESS_KEY=<YOUR_SECRET_KEY> cnservices/aws-cli <COMMAND>

Where:

  • AWS_ACCESS_KEY_ID: Specifies an AWS access key associated with an IAM user or role.
  • AWS_SECRET_ACCESS_KEY: Specifies the secret key associated with the access key. This is essentially the “password” for the access key.

Using AWS profiles

You can use your AWS profiles to authenticate the AWS Cli.

  1. docker run --volume ~/.aws/:/root/.aws/ cnservices/aws-cli <COMMAND>

Get into the container

To access the container you need to override the entry point:

  1. docker run -ti --entrypoint sh cnservices/aws-cli