Skip to content

Instantly share code, notes, and snippets.

@ilyesAj
Created August 19, 2022 14:45
Show Gist options
  • Save ilyesAj/b9d909cba8ed578de9aaedd7d4f6119a to your computer and use it in GitHub Desktop.
Save ilyesAj/b9d909cba8ed578de9aaedd7d4f6119a 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:GetObject",
"s3:PutObject",
"s3:RestoreObject"
],
"Resource": [
"arn:aws:s3:::bucket-B",
"arn:aws:s3:::bucket-B/*"
]
}
]
}
@ilyesAj
Copy link
Author

ilyesAj commented Aug 24, 2022

full implementation of this code here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment