summaryrefslogtreecommitdiff
path: root/cloudformation
diff options
context:
space:
mode:
authorMike Morris <michael.patrick.morris@gmail.com>2015-04-16 12:40:53 +0200
committerMike Morris <michael.patrick.morris@gmail.com>2015-04-16 12:40:53 +0200
commitba12e514ccc83c782af40bdad5cda65eb321e012 (patch)
tree96a5c2ff0625c6d077470ef67fa8ac198eceff84 /cloudformation
parent89e226e10fe75bf16724ec4d7e786fdad544b277 (diff)
downloadqtlocation-mapboxgl-ba12e514ccc83c782af40bdad5cda65eb321e012.tar.gz
move travis template to cloudformation directroy
Diffstat (limited to 'cloudformation')
-rw-r--r--cloudformation/travis.template114
1 files changed, 114 insertions, 0 deletions
diff --git a/cloudformation/travis.template b/cloudformation/travis.template
new file mode 100644
index 0000000000..3ba9b9625e
--- /dev/null
+++ b/cloudformation/travis.template
@@ -0,0 +1,114 @@
+
+{
+ "AWSTemplateFormatVersion": "2010-09-09",
+ "Description": "node-mapbox-gl-native travis resources",
+ "Resources": {
+ "BuildUser": {
+ "Type": "AWS::IAM::User",
+ "Properties": {
+ "Policies": [
+ {
+ "PolicyName": "build",
+ "PolicyDocument": {
+ "Statement": [
+ {
+ "Action": [
+ "s3:DeleteObject",
+ "s3:GetObject",
+ "s3:GetObjectAcl",
+ "s3:PutObject",
+ "s3:PutObjectAcl"
+ ],
+ "Resource": [
+ "arn:aws:s3:::mapbox-node-binary/mapbox-gl-native/*"
+ ],
+ "Effect": "Allow"
+ }
+ ]
+ }
+ },
+ {
+ "PolicyName": "list",
+ "PolicyDocument": {
+ "Statement": [
+ {
+ "Action": [
+ "s3:ListBucket"
+ ],
+ "Resource": [
+ "arn:aws:s3:::mapbox-node-binary"
+ ],
+ "Effect": "Allow"
+ }
+ ]
+ }
+ },
+ {
+ "PolicyName": "build-testing",
+ "PolicyDocument": {
+ "Statement": [
+ {
+ "Action": [
+ "s3:DeleteObject",
+ "s3:GetObject",
+ "s3:GetObjectAcl",
+ "s3:PutObject",
+ "s3:PutObjectAcl"
+ ],
+ "Effect": "Allow",
+ "Resource": [
+ "arn:aws:s3:::mapbox/node-mapbox-gl-native/*"
+ ]
+ }
+ ]
+ }
+ },
+ {
+ "PolicyName": "list-testing",
+ "PolicyDocument": {
+ "Statement": [
+ {
+ "Action": [
+ "s3:ListBucket"
+ ],
+ "Effect": "Allow",
+ "Resource": [
+ "arn:aws:s3:::mapbox"
+ ],
+ "Condition": {
+ "StringLike": {
+ "s3:prefix": "node-mapbox-gl-native/*"
+ }
+ }
+ }
+ ]
+ }
+ }
+ ]
+ }
+ },
+ "BuildUserKey": {
+ "Type": "AWS::IAM::AccessKey",
+ "Properties": {
+ "UserName": {
+ "Ref": "BuildUser"
+ }
+ }
+ }
+ },
+ "Outputs": {
+ "AccessKeyId": {
+ "Value": {
+ "Ref": "BuildUserKey"
+ }
+ },
+ "SecretAccessKey": {
+ "Value": {
+ "Fn::GetAtt": [
+ "BuildUserKey",
+ "SecretAccessKey"
+ ]
+ }
+ }
+ }
+}