Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "Version": "2012-10-17",
- "Statement": [
- {
- "Effect": "Allow",
- "Principal": {
- "AWS": "arn:aws:iam::Account3:root"
- },
- "Action": [
- "s3:GetBucketLocation",
- "s3:ListBucket"
- ],
- "Resource": "arn:aws:s3:::my-magic-bucket"
- },
- {
- "Effect": "Allow",
- "Principal": {
- "AWS": "arn:aws:iam::Account3:root"
- },
- "Action": "s3:GetObject",
- "Resource": "arn:aws:s3:::my-magic-bucket/*"
- },
- {
- "Effect": "Allow",
- "Principal": {
- "AWS": "arn:aws:iam::Account2:root"
- },
- "Action": [
- "s3:GetBucketLocation",
- "s3:ListBucket",
- "s3:GetBucketAcl"
- ],
- "Resource": "arn:aws:s3:::my-magic-bucket"
- },
- {
- "Effect": "Allow",
- "Principal": {
- "AWS": "arn:aws:iam::Account2:root"
- },
- "Action": [
- "s3:GetObject",
- "s3:PutObject",
- "s3:GetObjectAcl",
- "s3:PutObjectAcl"
- ],
- "Resource": "arn:aws:s3:::my-magic-bucket/*"
- }
- ]
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement