2 Risposte
- Più recenti
- Maggior numero di voti
- Maggior numero di commenti
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
con risposta 5 anni fa
Contenuto pertinente
- AWS UFFICIALEAggiornata 2 anni fa
- AWS UFFICIALEAggiornata 2 anni fa
- AWS UFFICIALEAggiornata 2 anni fa