Hints — Presigned URL - Lab 04
Open each hint only after you’ve spent time investigating on your own.
Hint 1 — Read the error
Look closely at the error response in your browser. It will be an XML document. What does the error say?
Hint 2 — Inspect the URL
Presigned URLs contain query parameters that control their behavior. Look at the URL itself.
Hint 3 — How to fix it
The original presigned URL is expired and cannot be extended. You need to generate a new one with a longer expiration.
Spoiler Alert — Full Solution
Root cause: The presigned URL was generated with an expiration of 5 seconds. By the time you copied it from the CloudFormation Outputs and opened it, it had already expired. Expired presigned URLs return AccessDenied.
To generate a working presigned URL:
- Open the S3 console and navigate to your bucket
- Check the box next to
index.html - Click Object actions > Share with a presigned URL
- Set a time interval (e.g., 1 hour) and click Create presigned URL
- The URL is copied to your clipboard — open it in your browser
- The AWS Broken Labs welcome page should load