Skip to content

Latest commit

 

History

History
53 lines (36 loc) · 1.22 KB

File metadata and controls

53 lines (36 loc) · 1.22 KB

Use awscli in the devops-toolkit

Prerequisite

An AWS account

awscli document

Some document to help you start with awscli

Run with Docker command

Note

To use the existing container instead of creating one, use docker exec command instead of docker run

docker exec -it my_devops_toolkit /bin/bash

Common Run Modes

For instructions on common run modes, visit DevOps Toolkit Common Run Mode.

Use case 1: Configure credentials and list S3 bucket with awscli

docker run --rm --network host -it -v ~/.dtc:/dtc tungbq/devops-toolkit:latest
###############################################
# Now we are in the docker container terminal #
###############################################
# Configure credentials
aws configure
# List S3 buckets
aws s3 ls

Sample Result

root@docker-desktop:~# aws configure
AWS Access Key ID [None]: xxxxxxxx
AWS Secret Access Key [None]: xxxxxxxx
Default region name [None]: xxxxxxxx
Default output format [None]: xxxxxxxx

Troubleshooting