Skip to content

Instantly share code, notes, and snippets.

@dyllanwli
Last active June 5, 2019 07:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dyllanwli/3330fb8ea187635e5ab95ec23300bdc3 to your computer and use it in GitHub Desktop.
Save dyllanwli/3330fb8ea187635e5ab95ec23300bdc3 to your computer and use it in GitHub Desktop.
aws s3 command
aws --version
# aws-cli/1.15.30 Python/3.6.5 Darwin/17.6.0 botocore/1.10.30
# move or rename bucket
aws s3 mb s3://[new-bucket]
aws s3 mv s3://old-bucket s3://new-bucket --recursive
# or
aws s3 mb s3://[new-bucket]
aws s3 sync s3://[old-bucket] s3://[new-bucket]
aws s3 rb --force s3://[old-bucket]
# get configure
aws configure get region
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment