Skip to content

Instantly share code, notes, and snippets.

@phroggyy
Last active April 25, 2017 22:16
Show Gist options
  • Save phroggyy/25b6e3396b5b2e431a6ed4cab61f1564 to your computer and use it in GitHub Desktop.
Save phroggyy/25b6e3396b5b2e431a6ed4cab61f1564 to your computer and use it in GitHub Desktop.
The AWS policy required to upload files to an S3 bucket using gulp-awspublish
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:ListBucket"
],
"Resource": [
"arn:aws:s3:::bucket.name"
]
},
{
"Effect": "Allow",
"Action": [
"s3:PutObject",
"s3:PutObjectTagging",
"s3:PutObjectVersionTagging",
"s3:GetObject",
"s3:DeleteObject",
"s3:DeleteObjectVersion",
"s3:DeleteObjectVersionTagging"
],
"Resource": [
"arn:aws:s3:::bucket.name/*"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment