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

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

Amazon Linux docker image with aws-cli
https://github.com/memeddev/docker-aws-cli

Last synced: 5 months ago
JSON representation

Amazon Linux docker image with aws-cli

Awesome Lists containing this project

README

          

# Memed Docker AWS CLI

Amazon Linux docker image with `aws-cli` installed.

[Source code at GitHub](https://github.com/MemedDev/docker-aws-cli).

[Registry at DockerHub](https://hub.docker.com/r/memeddev/docker-aws-cli).

## Running

1. Using credentials:

```bash
docker run -it \
-v $HOME/.aws:/root/.aws \
-e AWS_PROFILE= \
memeddev/docker-aws-cli:0.7.0 aws s3 ls
```

> For security reasons, the image does not contains AWS Credentials. Therefore, user must pass `$HOME/.aws` as volume, and `-e AWS_PROFILE=` to have access to AWS API.

2. Using env vars:

```bash
docker run -it \
-e AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID \
-e AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY \
memeddev/docker-aws-cli:0.7.0 aws s3 ls
```

> More information about authentication at [AWS CLI Docs](https://docs.aws.amazon.com/pt_br/cli/latest/userguide/cli-chap-configure.html).