https://github.com/github/docker-awscli
Another aws cli for hacking
https://github.com/github/docker-awscli
Last synced: 5 months ago
JSON representation
Another aws cli for hacking
- Host: GitHub
- URL: https://github.com/github/docker-awscli
- Owner: github
- License: mit
- Archived: true
- Fork: true (sfc-gh-eraigosa/docker-awscli)
- Created: 2017-12-15T00:30:00.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-12-04T03:15:44.000Z (over 8 years ago)
- Last Synced: 2024-09-25T21:09:56.019Z (over 1 year ago)
- Language: Shell
- Size: 14.6 KB
- Stars: 7
- Watchers: 2
- Forks: 11
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Another awscli
[](https://travis-ci.org/wenlock/docker-awscli)
Lets build another aws cli tool for docker so we can hack. :tada:
## Using the image
Here is some instructions on how to use it.
### Setup a function
This works in bash
```bash
function awscli {
export AWS_CLI_IMAGE="${AWS_CLI_IMAGE:-wenlock/awscli}"
docker run -it --rm -e AWS_ACCESS_KEY_ID \
-e AWS_SECRET_ACCESS_KEY \
-e AWS_DEFAULT_REGION \
${AWS_CLI_IMAGE} aws $@
}
```
Don't like the `latest` version, just set `export AWS_CLI_IMAGE=wenlock/awscli:1.11.189`.
We'll get the aws version you ask for.
### Setup credentials with environment vars
```bash
export AWS_ACCESS_KEY_ID=aaaabbbbbb
export AWS_SECRET_ACCESS_KEY=xxxxxxxxxx
export AWS_DEFAULT_REGION=us-east-1
```
### Use it
For example:
`eval $(aws ecr get-login)`
## Contributing to awscli
Want to help me, wow cool!
Fork this repo and submit a PR :D
## Licensing
[MIT](LICENSE.txt)