Skip to content
This repository has been archived by the owner on Jul 26, 2020. It is now read-only.

Latest commit

 

History

History
43 lines (35 loc) · 1.36 KB

awscli.org

File metadata and controls

43 lines (35 loc) · 1.36 KB

AWS Command Line Interface

Table of Contents

configure

# when '--profile' omitted, considered it as 'default'
$ aws configure --profile user2
AWS Access Key ID [None]: AKIAI44QH8DHBEXAMPLE
AWS Secret Access Key [None]: je7MtGbClwBF/2Zp9Utk/h3yCo8nvbEXAMPLEKEY
Default region name [None]: us-east-1
Default output format [None]: text
# Specify options as arguments
aws ec2 describe-instances --output table --region us-west-1

ec2

# Make the instance terminable (Disable Termination Protection)
aws ec2 modify-instance-attribute --instance-id <value> --no-disable-api-termination

s3

aws s3 mv test.txt s3://mybucket/test2.txt
aws s3 mv s3://mybucket/test.txt s3://mybucket/test2.txt
aws s3 mv s3://mybucket/test.txt test2.txt
aws s3 mv s3://mybucket . --recursive
aws s3 mv myDir s3://mybucket/ --recursive --exclude "*.jpg"
aws s3 mv s3://mybucket/ s3://mybucket2/ --recursive --exclude "mybucket/another/*"