I've created AWS s3 buckets with several thousand objects, initially the access policy was restricted to authenticated users, but later due to some requirement we need to make all objects in this bucket publicly visible. For this we have made the following changes.
- Added new permission set "Everyone" with "List" access.
- Added new policy to bucket.
**
{
"Version": "2012-10-17",
"Id": "Policy1111",
"Statement": [
{
"Sid": "makeitpublic",
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::bucketname/*"
}
]
}
**
After this I can see some objects in bucket are publicly accessible while others are not. My question is after make this bucket "Public" will the new permissions will be applied to all existing objects or only to the newly uploaded objects ?
If yes then is there any way to bulk change permission of objects in a bucket.
*
and you should also have a*
after your bucketname in the Resource, so"arn:aws:s3:::bucketname/*"