Skip to content

Instantly share code, notes, and snippets.

@rcherara
Last active December 10, 2018 06:20
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 rcherara/e86e9a39d8c95ec34b2294ebbdcfc30c to your computer and use it in GitHub Desktop.
Save rcherara/e86e9a39d8c95ec34b2294ebbdcfc30c to your computer and use it in GitHub Desktop.
Copy file to s3 with AWS command line interface

AWS cli Configuration

$ aws configure AWS Access Key ID [None]: YOURKEY

AWS Secret Access Key [None]: YOURSECRETKEY

Default region name [None]: us-west-2

Default output format [None]: json

To list all s3 backets use :

$ aws s3 ls

Copy file to s3 backet

$ aws s3 cp file-to-copy-in-s3.txt s3://my-s3-backet-name/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment