summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cloudformation/travis.template36
-rw-r--r--platform/node/cloudformation/travis.template114
2 files changed, 36 insertions, 114 deletions
diff --git a/cloudformation/travis.template b/cloudformation/travis.template
index 9351501052..4e7a0c7519 100644
--- a/cloudformation/travis.template
+++ b/cloudformation/travis.template
@@ -85,6 +85,42 @@
}
},
{
+ "PolicyName": "list-node",
+ "PolicyDocument": {
+ "Statement": [
+ {
+ "Action": [
+ "s3:ListBucket"
+ ],
+ "Resource": [
+ "arn:aws:s3:::mapbox-node-binary"
+ ],
+ "Effect": "Allow"
+ }
+ ]
+ }
+ },
+ {
+ "PolicyName": "build-node",
+ "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": "android",
"PolicyDocument": {
"Statement": [
diff --git a/platform/node/cloudformation/travis.template b/platform/node/cloudformation/travis.template
deleted file mode 100644
index 3ba9b9625e..0000000000
--- a/platform/node/cloudformation/travis.template
+++ /dev/null
@@ -1,114 +0,0 @@
-
-{
- "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"
- ]
- }
- }
- }
-}