Examples
Grant full control of the bucket to other users
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Grant Full Control",
"Effect": "Allow",
"Principal": {
"AWS": [
"arn:aws:iam:::user/CONTRACT_USER_ID1",
"arn:aws:iam:::user/CONTRACT_USER_ID2"
]
},
"Action": "s3:*",
"Resource": [
"arn:aws:s3:::my-bucket",
"arn:aws:s3:::my-bucket/*"
]
}
]
}{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Grant Full Control",
"Effect": "Allow",
"Principal": {
"CanonicalUser": ["CANONICAL_USER_ID_1", "CANONICAL_USER_ID_2"]
},
"Action": "s3:*",
"Resource": [
"arn:aws:s3:::my-bucket",
"arn:aws:s3:::my-bucket/*"
]
}
]
}Grant read-only access to a specific prefix
Public read access
Restrict access to specific IP addresses
Last updated
Was this helpful?