https://github.com/itaru2622/docker-aws-cli
AWS CLI tool in docker
https://github.com/itaru2622/docker-aws-cli
aws aws-cdk aws-cli aws-eks docker
Last synced: about 1 month ago
JSON representation
AWS CLI tool in docker
- Host: GitHub
- URL: https://github.com/itaru2622/docker-aws-cli
- Owner: itaru2622
- Created: 2021-07-03T16:54:00.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-06-27T22:33:59.000Z (almost 3 years ago)
- Last Synced: 2025-01-27T10:11:44.582Z (over 1 year ago)
- Topics: aws, aws-cdk, aws-cli, aws-eks, docker
- Language: Dockerfile
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://github.com/itaru2622/aws-cli/actions/workflows/build_publish.yml)
## basic use example
```bash
export DIR_AWS_PROFILE=${HOME}/.aws
export KUBECONFIG=${HOME}/.kube/config
touch ${KUBECONFIG}
docker run --rm -it -e http_proxy=${http_proxy} -e https_proxy=${http_proxy} \
-v ${DIR_AWS_PROFILE}:/root/.aws \
-v ${KUBECONFIG}:/root/.kube/config \
-v /var/run/docker.sock:/var/run/docker.sock \
itaru2622/aws-cli:bullseye /bin/bash
# AWS profile is needed for aws command, keep and share it with host.
# docker.socket is needed for ECR, to push docker image from local.
# KUBECONFIG is needed for EKS, keep and share it with host.
```