Skip to content

Instantly share code, notes, and snippets.

@luafanti
Created March 7, 2023 14:30
Show Gist options
  • Save luafanti/7e937db730760c84c8662ab3a5a68b62 to your computer and use it in GitHub Desktop.
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.
{
"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