diff options
author | Leith Bade <leith@mapbox.com> | 2014-12-26 13:30:21 +1300 |
---|---|---|
committer | Leith Bade <leith@mapbox.com> | 2014-12-26 13:30:21 +1300 |
commit | 62d7bab59d40c5ddbc33b5be42385c2b0dfee6fb (patch) | |
tree | 51c767d398b7640308e738d8c1c8cec61aecc465 /travis | |
parent | a9061120ceb1194fcf475501807c4c055ed56e68 (diff) | |
download | qtlocation-mapboxgl-62d7bab59d40c5ddbc33b5be42385c2b0dfee6fb.tar.gz |
Update travis stack
Diffstat (limited to 'travis')
-rw-r--r-- | travis/travis-resources.template | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/travis/travis-resources.template b/travis/travis-resources.template index a0526933be..b3d2165864 100644 --- a/travis/travis-resources.template +++ b/travis/travis-resources.template @@ -117,6 +117,56 @@ "Ref": "BuildUser" } } + }, + "AndroidRole": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Effect": "Allow", + "Principal": { + "Service": [ + "ec2.amazonaws.com" + ] + }, + "Action": [ + "sts:AssumeRole" + ] + } + ] + }, + "Policies": [ + { + "PolicyName": "android", + "PolicyDocument": { + "Statement": [ + { + "Effect": "Allow", + "Action": [ + "s3:PutObject" + ], + "Resource": [ + "arn:aws:s3:::android-gl-build/*" + ] + } + ] + } + } + ], + "Path": "/android-gl-build/travis/role/" + } + }, + "AndroidInstanceProfile": { + "Type": "AWS::IAM::InstanceProfile", + "Properties": { + "Roles": [ + { + "Ref": "AndroidRole" + } + ], + "Path": "/android-gl-build/travis/instance-profile/" + } } }, "Outputs": { @@ -132,6 +182,22 @@ "SecretAccessKey" ] } + }, + "AndroidInstanceProfile": { + "Value": { + "Fn::GetAtt": [ + "AndroidInstanceProfile", + "Arn" + ] + } + }, + "AndroidRole": { + "Value": { + "Fn::GetAtt": [ + "AndroidRole", + "Arn" + ] + } } } } |