Skip to content

Instantly share code, notes, and snippets.

@BacancyPratik
Created December 11, 2019 08:45
Show Gist options
  • Save BacancyPratik/f2d9815a1273344d256aa3268fbdbbea to your computer and use it in GitHub Desktop.
Save BacancyPratik/f2d9815a1273344d256aa3268fbdbbea to your computer and use it in GitHub Desktop.
Copy files using s3 cli
# Copy single file to s3 bucket
aws s3 cp file.txt s3://<your bucket name>
# Copy multiple files from directory or directory
aws s3 cp <your directory path> s3://<your bucket name> --recursive
# --recursive flag to indicate that all files must be copied recursively.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment