AWS Builder Center

Share a Private Demo Video with an S3 Presigned URL

Share one private S3 demo video for review. Scope the signer to a single object, create a short presigned GET URL, and check access before and after expiry.

You have a downloaded demo clip and one teammate who needs to review it. Put the MP4 at a dedicated key in a private S3 bucket and send a short-lived presigned GET URL. The teammate can open the link without AWS credentials. Anyone they forward it to can also use it while it’s valid, so use this approach for a clip your team is allowed to share by bearer link.
This example assumes an existing private, general-purpose bucket in your AWS account, a small local MP4, and the AWS CLI v2 with team-approved profiles. It uses a bucket with SSE-S3 encryption. The illustrations are conceptual, and the commands were checked against the AWS documentation. No AWS resources were created or commands run against AWS for this walkthrough.

A locked navy file cabinet contains several files, with one teal video tile highlighted.


1. Put one clip at a dedicated key

Use a fresh key for each review copy. Keep S3 Block Public Access enabled and leave public ACLs and policies out of the workflow. Check the clip locally for anything that should stay internal, such as tokens, customer data, or private endpoints.
The shell examples use Bash. Set these three values first and keep using the same shell. If the clip is already in S3, enter its actual bucket, Region and object key, then go to step 2. If you’re uploading a review copy, choose an unused key.
BUCKET='replace-with-your-private-bucket'
REGION='us-west-2'
KEY='reviews/demo-2026-11-05-v1.mp4'
For a new upload, use a profile with  s3:PutObject  on that object ARN. Replace the example profile name below.
UPLOAD_PROFILE='demo-upload'

aws s3api put-object \
--bucket "$BUCKET" \
--key "$KEY" \
--body './demo.mp4' \
--content-type 'video/mp4' \
--if-none-match '*' \
--region "$REGION" \
--profile "$UPLOAD_PROFILE"
Continue only once the intended clip is at that key. If S3 reports that the key already exists, pick a fresh key and retry the upload. Keeping a separate key for each version protects older review links from serving a replacement clip.

2. Give the signing role access to the exact object

Have the role owner scope the signing identity’s permissions to  s3:GetObject  on the full object ARN. This is an example identity policy for the same-account signing role. Substitute your bucket and key. The signer needs neither  s3:ListBucket  nor upload or delete permission for this workflow.
{
"Version": "2012-10-17",
"Statement": [{
"Effect": "Allow",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::BUCKET/KEY"
}]
}
In this same-account example, the identity policy can supply the allow. An applicable deny in a bucket or organization policy can still block the request, and a permissions boundary or session policy can limit the role. If your bucket uses SSE-KMS, consult the bucket owner about the required AWS KMS permissions and key policy. Keep the bucket’s required encryption in place.

3. Sign a GET request and check what the reviewer gets

Run the signing command in the same shell, using the profile for the narrow read role. Run it in a private terminal and keep the printed URL out of shared logs and tickets.
SIGN_PROFILE='demo-review-signer'
OBJECT="s3://$BUCKET/$KEY"

aws s3 presign "$OBJECT" \
--expires-in 900 \
--region "$REGION" \
--profile "$SIGN_PROFILE"
The 900 seconds start when you sign. A temporary role session that expires earlier cuts the window short. Policy conditions can also reject a request before the requested expiry. Use the  Amazon S3 presigned URL documentation  for credential lifetimes and policy controls.


The signed URL lets its holder request the selected clip while the signature and underlying permissions are valid.
Try the URL in a fresh private browser window with no AWS session. Confirm that it opens or downloads the intended clip and that the clip plays. In a separate test, remove the query string from a copy of the URL and confirm that the bare object URL cannot retrieve the clip. If the bare URL works, stop and check public access with the bucket owner before sharing. A signing command can print a URL even when the resulting GET is denied. If the signed request fails, check the key, Region, session lifetime and the signer’s effective access before changing any policy.
Send the original, complete URL only through the intended private channel and tell the reviewer when you signed it. Use a separate test key and a short expiry if you need to rehearse the expiry behavior. After the window, close the original browser session and request the full signed URL again from a fresh session. S3 should reject a new request after expiry. A download that began before expiry may still finish.

4. Remove the temporary copy when review ends

Let the link expire and remove it from shared notes. If you no longer need the S3 copy, ask an authorized operator with  s3:DeleteObject  on that exact key to remove it according to your retention policy. A delete without a version ID in a versioning-enabled bucket creates a delete marker and leaves older versions stored. Have the bucket owner handle version cleanup where appropriate.

An hourglass and pass sit apart from a video file tile next to a laptop.

The link can expire while a copy the reviewer already downloaded remains on their device.
Plan for downloaded copies to persist beyond the review window. If access must be tied to a named teammate or downloading is unacceptable, use an authenticated review system that meets those requirements.
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article