diff --git a/cloudformation/travis.template b/cloudformation/travis.template index 4e7a0c75197..b65093907c2 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": [