Skip to content

Instantly share code, notes, and snippets.

@philipmw
Created January 24, 2017 15:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save philipmw/1f4bc37216faa882f5da4f22d1a2d78a to your computer and use it in GitHub Desktop.
Save philipmw/1f4bc37216faa882f5da4f22d1a2d78a to your computer and use it in GitHub Desktop.
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "Philip's Arq backups",
"Resources": {
"S3Bucket": {
"Type": "AWS::S3::Bucket",
"Properties": {
"BucketName": "pmw-backups-arq"
}
},
"ArqUser": {
"Type": "AWS::IAM::User",
"Properties": {
"Policies": [
{
"PolicyName": "S3-bucket-access",
"PolicyDocument": {
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:ListAllMyBuckets"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": [
"s3:*"
],
"Resource": {
"Fn::Sub": "arn:aws:s3:::${S3Bucket}"
}
},
{
"Effect": "Allow",
"Action": [
"s3:*"
],
"Resource": {
"Fn::Sub": "arn:aws:s3:::${S3Bucket}/*"
}
}
]
}
}
]
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment