An open API service indexing awesome lists of open source software.

https://github.com/cn-docker/aws-cli

AWS Cli Docker Image
https://github.com/cn-docker/aws-cli

aws aws-cli docker-image

Last synced: 15 days ago
JSON representation

AWS Cli Docker Image

Awesome Lists containing this project

README

          

# AWS Cli Docker Image

[![](https://img.shields.io/docker/pulls/cnservices/aws-cli)](https://hub.docker.com/r/cnservices/aws-cli/)
[![](hhttps://img.shields.io/docker/build/cnservices/aws-cli)](https://hub.docker.com/r/cnservices/aws-cli/)
[![](https://img.shields.io/docker/automated/cnservices/aws-cli)](https://hub.docker.com/r/cnservices/aws-cli/)
[![](https://img.shields.io/docker/stars/cnservices/aws-cli)](https://hub.docker.com/r/cnservices/aws-cli/)
[![](https://img.shields.io/github/license/cn-docker/aws-cli)](https://github.com/cn-docker/aws-cli)
[![](https://img.shields.io/github/issues/cn-docker/aws-cli)](https://github.com/cn-docker/aws-cli)
[![](https://img.shields.io/github/issues-closed/cn-docker/aws-cli)](https://github.com/cn-docker/aws-cli)
[![](https://img.shields.io/github/languages/code-size/cn-docker/aws-cli)](https://github.com/cn-docker/aws-cli)
[![](https://img.shields.io/github/repo-size/cn-docker/aws-cli)](https://github.com/cn-docker/aws-cli)

Image containing the AWS Cli executable.

# Usage

The image is ready to execute AWS Cli commands like:

docker run cnservices/aws-cli

## To provide AWS credentials you have two alternatives:

### Using environment variables

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

docker run --env AWS_ACCESS_KEY_ID= --env AWS_SECRET_ACCESS_KEY= cnservices/aws-cli

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.

docker run --volume ~/.aws/:/root/.aws/ cnservices/aws-cli

## Get into the container

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

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