From afe34456b9993d465d37ea3898fee1db6a2b5561 Mon Sep 17 00:00:00 2001 From: Siarhei Fedartsou Date: Mon, 31 Oct 2022 13:22:13 +0100 Subject: [PATCH] Delete CloudFormation templates (#6435) There is no need in them - it seems they were needed to manage some Mapbox S3 bucket which we have no access to anyway. --- cloudformation/ci.template | 75 ----------------------------------- cloudformation/ci.template.js | 59 --------------------------- 2 files changed, 134 deletions(-) delete mode 100644 cloudformation/ci.template delete mode 100644 cloudformation/ci.template.js diff --git a/cloudformation/ci.template b/cloudformation/ci.template deleted file mode 100644 index bb9d52829c3..00000000000 --- a/cloudformation/ci.template +++ /dev/null @@ -1,75 +0,0 @@ -{ - "AWSTemplateFormatVersion": "2010-09-09", - "Description": "user for publishing to s3://mapbox-node-binary/osrm", - "Resources": { - "User": { - "Type": "AWS::IAM::User", - "Properties": { - "Policies": [ - { - "PolicyName": "list", - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "s3:ListBucket" - ], - "Effect": "Allow", - "Resource": "arn:aws:s3:::mapbox-node-binary", - "Condition": { - "StringLike": { - "s3:prefix": [ - "osrm/*" - ] - } - } - } - ] - } - }, - { - "PolicyName": "publish", - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "s3:DeleteObject", - "s3:GetObject", - "s3:GetObjectAcl", - "s3:PutObject", - "s3:PutObjectAcl" - ], - "Effect": "Allow", - "Resource": "arn:aws:s3:::mapbox-node-binary/osrm/*" - } - ] - } - } - ] - } - }, - "AccessKey": { - "Type": "AWS::IAM::AccessKey", - "Properties": { - "UserName": { - "Ref": "User" - } - } - } - }, - "Outputs": { - "AccessKeyId": { - "Value": { - "Ref": "AccessKey" - } - }, - "SecretAccessKey": { - "Value": { - "Fn::GetAtt": [ - "AccessKey", - "SecretAccessKey" - ] - } - } - } -} diff --git a/cloudformation/ci.template.js b/cloudformation/ci.template.js deleted file mode 100644 index 719e80071ec..00000000000 --- a/cloudformation/ci.template.js +++ /dev/null @@ -1,59 +0,0 @@ -var cf = require('@mapbox/cloudfriend'); -var package_json = require('../package.json') - -module.exports = { - AWSTemplateFormatVersion: '2010-09-09', - Description: 'user for publishing to s3://mapbox-node-binary/' + package_json.name, - Resources: { - User: { - Type: 'AWS::IAM::User', - Properties: { - Policies: [ - { - PolicyName: 'list', - PolicyDocument: { - Statement: [ - { - Action: ['s3:ListBucket'], - Effect: 'Allow', - Resource: 'arn:aws:s3:::mapbox-node-binary', - Condition : { - StringLike : { - "s3:prefix": [ package_json.name + "/*"] - } - } - } - ] - } - }, - { - PolicyName: 'publish', - PolicyDocument: { - Statement: [ - { - Action: ['s3:DeleteObject', 's3:GetObject', 's3:GetObjectAcl', 's3:PutObject', 's3:PutObjectAcl'], - Effect: 'Allow', - Resource: 'arn:aws:s3:::mapbox-node-binary/' + package_json.name + '/*' - } - ] - } - } - ] - } - }, - AccessKey: { - Type: 'AWS::IAM::AccessKey', - Properties: { - UserName: cf.ref('User') - } - } - }, - Outputs: { - AccessKeyId: { - Value: cf.ref('AccessKey') - }, - SecretAccessKey: { - Value: cf.getAtt('AccessKey', 'SecretAccessKey') - } - } -};