2 Answers
- Newest
- Most votes
- Most comments
0
Hi,
Most likely you just need to set the Bucket Policy to public so that anyone can view the images (and they will be available for use to embed in your web page).
- Go to Services - Amazon S3
- Click on the link to your bucket "oldports-static-images"
- Click on Permissions. Make sure you have "Block public access" set to Off. If no, hit the Edit Button and set to Off.
- If "Bucket Policy" is NOT marked "Public", then click on Bucket Policy (on Permissions tab).
- Enter the Following Bucket Policy:
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AddPerm",
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::oldports-static-images/*"
}
]
}
- Hit Save
- You should now see the Bucket Policy and Permissions both tagged with "Public"
You should now be able to upload any files to this bucket and reference them with your URL.
Hope this helps!
-randy
answered 5 years ago
Relevant content
- asked 4 months ago
- asked a year ago
- asked a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago