Generating presigned URLs to share objects directory bucket
The following code examples show how to generate presigned URLs to share objects from an Amazon S3 directory bucket.
The following example command shows how you can use the AWS CLI
to generate a presigned URL for an object from Amazon S3. This command generates a presigned URL for an object
from the directory bucket
KEY_NAME
. To run this command, replace the bucket-base-name
--zone-id
--x-s3
with your own information.user input placeholders
aws s3 presign s3://
bucket-base-name
--zone-id
--x-s3/KEY_NAME
--expires-in 7200
For more information, see presign