From c35f18fdbc94917c20cb675b6510c9feaed40f0c Mon Sep 17 00:00:00 2001 From: Jeff Miccolis Date: Fri, 13 Nov 2015 17:04:42 -0500 Subject: Add creds for bitrise. Fixes #3028 --- cloudformation/travis.template | 44 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/cloudformation/travis.template b/cloudformation/travis.template index 4e7a0c7519..b65093907c 100644 --- a/cloudformation/travis.template +++ b/cloudformation/travis.template @@ -160,6 +160,37 @@ } } }, + "BitriseUser": { + "Type": "AWS::IAM::User", + "Properties": { + "Policies": [ + { + "PolicyName": "get-signing-key", + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "s3:GetObject" + ], + "Effect": "Allow", + "Resource": [ + "arn:aws:s3:::mapbox/android/signing-credentials/secring.gpg" + ] + } + ] + } + } + ] + } + }, + "BitriseUserKey": { + "Type": "AWS::IAM::AccessKey", + "Properties": { + "UserName": { + "Ref": "BitriseUser" + } + } + }, "AndroidRole": { "Type": "AWS::IAM::Role", "Properties": { @@ -241,6 +272,19 @@ ] } }, + "BitriseAccessKeyId": { + "Value": { + "Ref": "BitriseUserKey" + } + }, + "BitriseSecretAccessKey": { + "Value": { + "Fn::GetAtt": [ + "BitriseUserKey", + "SecretAccessKey" + ] + } + }, "AndroidInstanceProfile": { "Value": { "Fn::GetAtt": [ -- cgit v1.2.1