You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
logger.info(`[S3] ✏️ Allow public read to "${bucketName}"...`);
returns3
.putBucketPolicy({
Bucket: bucketName,
Policy: JSON.stringify({
Statement: [
{
Sid: "AllowPublicRead",
Effect: "Allow",
Principal: {
AWS: "*",
},
Action: "s3:GetObject",
Resource: `arn:aws:s3:::${bucketName}/*`,
},
],
}),
})
.promise();
};
The text was updated successfully, but these errors were encountered:
iamogbz
changed the title
Access denied when allowing public reads on newly created bucket
[Bug] Access denied when allowing public reads on newly created bucket
Jan 6, 2024
Failure while deploying build using
aws-spa
Reason due to initial bucket creation having the
Block public access (bucket settings) - All
setting enabled.Can be fixed by adding a remove block public access step before the allow public read bucket policy update.
at
aws-spa/src/s3.ts
Lines 117 to 137 in 6031af3
The text was updated successfully, but these errors were encountered: