HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

aws s3 presign — Generate pre-signed URLs for Amazon S3 objects. More information: <https://docs.aws.amazon.com/cli/l

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandurlssignedcliaws s3 presignforpregenerate

Problem

How to use the aws s3 presign command: Generate pre-signed URLs for Amazon S3 objects. More information: <https://docs.aws.amazon.com/cli/latest/reference/s3/presign.html>.

Solution

aws s3 presign — Generate pre-signed URLs for Amazon S3 objects. More information: <https://docs.aws.amazon.com/cli/latest/reference/s3/presign.html>.

Generate a pre-signed URL for a specific S3 object that is valid for one hour:
aws s3 presign s3://{{bucket_name}}/{{path/to/file}}


Generate a pre-signed URL valid for a specific lifetime:
aws s3 presign s3://{{bucket_name}}/{{path/to/file}} --expires-in {{duration_in_seconds}}


Display help:
aws s3 presign help

Code Snippets

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

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

Generate a pre-signed URL valid for a specific lifetime

aws s3 presign s3://{{bucket_name}}/{{path/to/file}} --expires-in {{duration_in_seconds}}

Display help

aws s3 presign help

Context

tldr-pages: common/aws s3 presign

Revisions (0)

No revisions yet.