Sign inSign up

luanvv/awscli

By luanvv

•Updated almost 7 years ago

Containerized AWS CLI on Centos7. Support SSH remote

Image
0

393

luanvv/awscli repository overview

⁠awscli-docker

Containerized AWS CLI on Centos7. Support SSH remote

⁠Build

docker build -t luanvv/aws-cli .
luanvv/aws-cli : Docker image name

⁠Usage

docker run -d --name awscli -p 22 luanvv/aws-cli
-d              : run in background
--name aws-cli  : container's name
-p 22           : map localhost port with container port 22
luanvv/aws-cli  : Docker image name

Check SSH Port

docker port awscli

Output example:

22/tcp -> 0.0.0.0:32770

⁠Install

I don't want expose any security credentials. So, instead of export AWS Credentials via environment variables, you should connect to Docker container and configure by hand.

Connect direct from docker container:

docker exec -it awscli bash

Or SSH

ssh -p <container_port> user@localhost

password default is newpass
Config AWS credentials

aws configure

⁠References

AWS CLI Docs⁠
CentOS SSH Dockerfiles⁠
mesosphere/aws-cli⁠

Tag summary

Content type

Image

Digest

Size

333.7 MB

Last updated

almost 7 years ago

docker pull luanvv/awscli