Copy a file from local to a specific bucket

aws s3 cp

  • Copy local files or S3 objects to another location locally or in S3.
    More information: <https://awscli.amazonaws.com/v2/documentation/api/latest/reference/s3/cp.html>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

aws s3 cp {{path/to/file}} s3://{{bucket_name}}/{{path/to/remote_file}}

click the source code to copy install aws s3 cp on any operating system with command-not-found.com