summaryrefslogtreecommitdiff
path: root/travis
diff options
context:
space:
mode:
authorYoung Hahn <young@mapbox.com>2014-07-08 19:29:03 -0400
committerYoung Hahn <young@mapbox.com>2014-07-08 19:29:03 -0400
commit7bf4193ab9c17b015596beacd5a23871d136c649 (patch)
tree2570b684b65d558858ac309270661677dab78a86 /travis
parente1bd68f6181478464fcca954cfba15fcf7bf4101 (diff)
downloadqtlocation-mapboxgl-7bf4193ab9c17b015596beacd5a23871d136c649.tar.gz
CF template for travis testing user and encrypted creds.
Diffstat (limited to 'travis')
-rw-r--r--travis/travis-resources.template74
1 files changed, 74 insertions, 0 deletions
diff --git a/travis/travis-resources.template b/travis/travis-resources.template
new file mode 100644
index 0000000000..afe0478e33
--- /dev/null
+++ b/travis/travis-resources.template
@@ -0,0 +1,74 @@
+
+{
+ "AWSTemplateFormatVersion": "2010-09-09",
+ "Description": "mapbox-gl-native travis resources",
+ "Resources": {
+ "BuildUser": {
+ "Type": "AWS::IAM::User",
+ "Properties": {
+ "Policies": [
+ {
+ "PolicyName": "list",
+ "PolicyDocument": {
+ "Statement": [
+ {
+ "Action": [
+ "s3:ListBucket"
+ ],
+ "Effect": "Allow",
+ "Resource": [
+ "arn:aws:s3:::mapbox-gl-testing"
+ ]
+ }
+ ]
+ }
+ },
+ {
+ "PolicyName": "build",
+ "PolicyDocument": {
+ "Statement": [
+ {
+ "Action": [
+ "s3:DeleteObject",
+ "s3:GetObject",
+ "s3:GetObjectAcl",
+ "s3:PutObject",
+ "s3:PutObjectAcl"
+ ],
+ "Effect": "Allow",
+ "Resource": [
+ "arn:aws:s3:::mapbox-gl-testing/*"
+ ]
+ }
+ ]
+ }
+ }
+ ]
+ }
+ },
+ "BuildUserKey": {
+ "Type": "AWS::IAM::AccessKey",
+ "Properties": {
+ "UserName": {
+ "Ref": "BuildUser"
+ }
+ }
+ }
+ },
+ "Outputs": {
+ "AccessKeyId": {
+ "Value": {
+ "Ref": "BuildUserKey"
+ }
+ },
+ "SecretAccessKey": {
+ "Value": {
+ "Fn::GetAtt": [
+ "BuildUserKey",
+ "SecretAccessKey"
+ ]
+ }
+ }
+ }
+}
+