- Le plus récent
- Le plus de votes
- La plupart des commentaires
Hello.
Are public block access settings disabled?
If this setting is not disabled, an error will occur when configuring the bucket ACL.
There are two public block access settings: bucket level and account level, so please check both.
https://docs.aws.amazon.com/AmazonS3/latest/userguide/configuring-block-public-access-bucket.html
https://docs.aws.amazon.com/AmazonS3/latest/userguide/configuring-block-public-access-account.html
Hi, Yes, I deleted the bucket level block in the second line of code. It's useful to know there's an account level one as well, though I don't think I have a use for that now.
Curiously, I think I may not need to set public access on the files in the bucket anyway! The code to set the ACL on new files uploaded has been working for more than a year on buckets around a year old, but fails on new buckets. But from what I can find, the policy I set on the bucket should allow read by all on objects in it, so the object-level ACL is not only unnecessary but not allowed by default since April 2023.
I'll test this out today and see if I can settle it one way or the other.
Contenus pertinents
- demandé il y a 5 mois
- demandé il y a 9 mois
- demandé il y a 25 jours
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a un an
- AWS OFFICIELA mis à jour il y a 3 ans
- AWS OFFICIELA mis à jour il y a 5 mois