Skip to content

Commit

Permalink
Add CF template for travis build user.
Browse files Browse the repository at this point in the history
  • Loading branch information
Young Hahn committed Apr 1, 2014
1 parent b7e4095 commit 950022c
Showing 1 changed file with 74 additions and 0 deletions.
74 changes: 74 additions & 0 deletions test/travis-resources.template
@@ -0,0 +1,74 @@

{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "blend build resources",
"Resources": {
"BuildUser": {
"Type": "AWS::IAM::User",
"Properties": {
"Policies": [
{
"PolicyName": "buildList",
"PolicyDocument": {
"Statement": [
{
"Action": [
"s3:ListBucket"
],
"Effect": "Allow",
"Resource": [
"arn:aws:s3:::mapbox-node-binary"
]
}
]
}
},
{
"PolicyName": "build",
"PolicyDocument": {
"Statement": [
{
"Action": [
"s3:DeleteObject",
"s3:GetObject",
"s3:GetObjectAcl",
"s3:PutObject",
"s3:PutObjectAcl"
],
"Effect": "Allow",
"Resource": [
"arn:aws:s3:::mapbox-node-binary/blend/*"
]
}
]
}
}
]
}
},
"BuildUserKey": {
"Type": "AWS::IAM::AccessKey",
"Properties": {
"UserName": {
"Ref": "BuildUser"
}
}
}
},
"Outputs": {
"AccessKeyId": {
"Value": {
"Ref": "BuildUserKey"
}
},
"SecretAccessKey": {
"Value": {
"Fn::GetAtt": [
"BuildUserKey",
"SecretAccessKey"
]
}
}
}
}

0 comments on commit 950022c

Please sign in to comment.