1 Risposta
- Più recenti
- Maggior numero di voti
- Maggior numero di commenti
0
After much experimentation, I've concluded that S3 policies have changed since the tutorial was written. Importantly, it seems access to objects is by default private. By adding the following bucket policy to my bucket's permissions, I got the files to display:
{
"Version": "2012-10-17",
"Id": "Policy1621539673651",
"Statement": [
{
"Sid": "Stmt1621539600741",
"Effect": "Allow",
"Principal": "",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::snaptut/static/"
},
{
"Sid": "Stmt1621539665305",
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::063892473623:user/snapdoor"
},
"Action": [
"s3:GetObject",
"s3:GetObjectAcl",
"s3:PutObject",
"s3:PutObjectAcl"
],
"Resource": "arn:aws:s3:::snaptut/*"
}
]
}
con risposta 3 anni fa
Contenuto pertinente
- AWS UFFICIALEAggiornata un anno fa
- AWS UFFICIALEAggiornata un anno fa
- AWS UFFICIALEAggiornata 2 anni fa