- This line was added.
- This line was removed.
- Formatting was changed.
You can configure a pre-signed URL that enables an object to be accessible through the Internet. Any user to whom you send the pre-signed URL can access the object for the time you specify.
To configure a pre-signed URL, use the presign command following this syntax:
Code Block language text title Request sample
$ aws s3 presign s3://BUCKET/OBJECT \ --profile YOUR_PROFILE \ --expires-in 3600 \ --endpoint ENDPOINT
Include Page INCL:_RC-General-SentPart-AWSCLIattributes INCL:_RC-General-SentPart-AWSCLIattributes Include Page INCL:_RC-General-SentPart-AWSCLIProfile INCL:_RC-General-SentPart-AWSCLIProfile
s3://BUCKET/OBJECT: The path to the object you want to share in its bucket.
expires-in: The time left before the URL expires, in seconds.
The maximum duration of a pre-signed URL is:
- For OOS: 604800 seconds (or 1 week)
- For OSU: 31536000 seconds (or 1 year)
Include Page INCL:_RC-OS-SentPart-AWSCLIEndpoint INCL:_RC-OS-SentPart-AWSCLIEndpoint
The presign command returns the following element:
URL: The URL at which your object is available.
Code Block language text title Result sample