2025-03-14 21:59:59 -06:00
|
|
|
# aws s3 presign
|
|
|
|
|
|
|
|
|
|
> Generate pre-signed URLs for Amazon S3 objects.
|
2026-02-18 06:55:01 -07:00
|
|
|
> More information: <https://docs.aws.amazon.com/cli/latest/reference/s3/presign.html>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- 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`
|