Skip to content

Instantly share code, notes, and snippets.

@ilyesAj
Created August 19, 2022 14:40
Show Gist options
  • Save ilyesAj/03a54fee3babcfe111b11693b161ba52 to your computer and use it in GitHub Desktop.
Save ilyesAj/03a54fee3babcfe111b11693b161ba52 to your computer and use it in GitHub Desktop.
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::ACCOUNT_B:user/s3-cross-account"
},
"Action": [
"s3:ListBucket",
"s3:GetObject"
],
"Resource": [
"arn:aws:s3:::bucket-A",
"arn:aws:s3:::bucket-A/*"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment