AWS CLI Cheat Sheet

From PUBLIC-WIKI
Revision as of 14:39, 12 March 2018 by Eyales (talk | contribs)
Jump to navigation Jump to search
  • Configuring the AWS cli environment (using IAM roles and access/secret keys):
aws configureItalic text
  • Configure a profile for additional AWS IAM account:
aws configure --profile [profile_name]Italic text
  • Create a new S3 bucket:
aws s3 mb <BucketName>Italic text
  • Remove S3 bucket:
aws s3 rb s3://<BucketName> --forceItalic text
  • List all S3 buckets:
aws s3 lsItalic text
  • List of S3 buckets using additional AWS IAM account:
aws s3 ls --profile [profile_name]Italic text
  • List the content of specific S3 bucket:
aws s3 ls s3://<BucketName>Italic text
  • Copy file from S3 bucket to local directory:
aws s3 cp s3://<BucketName>/<FileName> /<LocalFolderName>Italic text