Generate a pre-signed URL for a specific S3 object that is valid for one hour

aws s3 presign

  • Generate pre-signed URLs for Amazon S3 objects.
    More information: <https://awscli.amazonaws.com/v2/documentation/api/latest/reference/s3/presign.html>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

aws s3 presign s3://{{bucket_name}}/{{path/to/file}}

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