summaryrefslogtreecommitdiff
path: root/travis
diff options
context:
space:
mode:
authorLeith Bade <leith@mapbox.com>2014-12-26 13:30:21 +1300
committerLeith Bade <leith@mapbox.com>2014-12-26 13:30:21 +1300
commit62d7bab59d40c5ddbc33b5be42385c2b0dfee6fb (patch)
tree51c767d398b7640308e738d8c1c8cec61aecc465 /travis
parenta9061120ceb1194fcf475501807c4c055ed56e68 (diff)
downloadqtlocation-mapboxgl-62d7bab59d40c5ddbc33b5be42385c2b0dfee6fb.tar.gz
Update travis stack
Diffstat (limited to 'travis')
-rw-r--r--travis/travis-resources.template66
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"
+ ]
+ }
}
}
}