Created
March 7, 2023 14:30
-
-
Save luafanti/7e937db730760c84c8662ab3a5a68b62 to your computer and use it in GitHub Desktop.
AWS IAM policy that grants the necessary permissions for the s3 sync CLI command.
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": [ | |
{ | |
"Resource": [ | |
"arn:aws:s3:::YOUR_BUCKET_NAME", | |
"arn:aws:s3:::YOUR_BUCKET_NAME/*" | |
], | |
"Sid": "AllowSync", | |
"Effect": "Allow", | |
"Action": [ | |
"s3:DeleteObject", | |
"s3:GetBucketLocation", | |
"s3:GetObject", | |
"s3:ListBucket", | |
"s3:PutObject" | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment