From a9061120ceb1194fcf475501807c4c055ed56e68 Mon Sep 17 00:00:00 2001 From: Leith Bade Date: Fri, 26 Dec 2014 11:32:56 +1300 Subject: Add EC2 permissions --- travis/travis-resources.template | 31 +++++++++++++++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) diff --git a/travis/travis-resources.template b/travis/travis-resources.template index 2b7cea836a..a0526933be 100644 --- a/travis/travis-resources.template +++ b/travis/travis-resources.template @@ -78,6 +78,34 @@ } ] } + }, + { + "PolicyName": "android", + "PolicyDocument": { + "Statement": [ + { + "Effect": "Allow", + "Action": [ + "s3:GetObject" + ], + "Resource": [ + "arn:aws:s3:::android-gl-build/*" + ] + }, + { + "Effect": "Allow", + "Action": [ + "ec2:DescribeInstances", + "ec2:RunInstances", + "ec2:CreateTags", + "ec2:GetConsoleOutput" + ], + "Resource": [ + "*" + ] + } + ] + } } ] } @@ -99,7 +127,7 @@ }, "SecretAccessKey": { "Value": { - "Fn::GetAtt": [ + "Fn::GetAtt": [ "BuildUserKey", "SecretAccessKey" ] @@ -107,4 +135,3 @@ } } } - -- cgit v1.2.1