Created
August 19, 2022 14:45
-
-
Save ilyesAj/b9d909cba8ed578de9aaedd7d4f6119a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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/*" | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
full implementation of this code here