Remove S3 from base stack, must be managed externally to game-ci

pull/310/head
Frostebite 2021-12-23 01:15:30 +00:00
parent 099834f484
commit 8e4e4754bb
3 changed files with 2 additions and 31 deletions

View File

@ -7,10 +7,6 @@ Parameters:
Type: String Type: String
Default: development Default: development
Description: "Your deployment environment: DEV, QA , PROD" Description: "Your deployment environment: DEV, QA , PROD"
Storage:
Type: String
Default: game-ci-storage
Description: "Your s3 storage bucket"
Version: Version:
Type: String Type: String
Description: "hash of template" Description: "hash of template"
@ -238,10 +234,6 @@ Resources:
Statement: Statement:
- Effect: Allow - Effect: Allow
Action: Action:
# Allow upload to S3
- 's3:GetObject'
- 's3:GetObjectVersion'
- 's3:PutObject'
# Allow the use of secret manager # Allow the use of secret manager
- 'secretsmanager:GetSecretValue' - 'secretsmanager:GetSecretValue'
@ -355,12 +347,6 @@ Resources:
SecurityGroups: SecurityGroups:
- !Ref EFSServerSecurityGroup - !Ref EFSServerSecurityGroup
S3Bucket:
Type: 'AWS::S3::Bucket'
DeletionPolicy: Retain
Properties:
BucketName: !Ref Storage

View File

@ -47,7 +47,7 @@ Parameters:
Default: '' Default: ''
Description: >- Description: >-
(Optional) An IAM role to give the service's containers if the code within (Optional) An IAM role to give the service's containers if the code within
needs to access other AWS resources like S3 buckets, DynamoDB tables, etc needs to access other AWS resources
EFSMountDirectory: EFSMountDirectory:
Type: String Type: String
Default: '/efsdata' Default: '/efsdata'
@ -98,7 +98,7 @@ Resources:
Metadata: Metadata:
'AWS::CloudFormation::Designer': 'AWS::CloudFormation::Designer':
id: c6f18447-b879-4696-8873-f981b2cedd2b id: c6f18447-b879-4696-8873-f981b2cedd2b
# template secrets p2 - secret # template secrets p2 - secret
TaskDefinition: TaskDefinition:

View File

@ -7,10 +7,6 @@ Parameters:
Type: String Type: String
Default: development Default: development
Description: 'Your deployment environment: DEV, QA , PROD' Description: 'Your deployment environment: DEV, QA , PROD'
Storage:
Type: String
Default: game-ci-storage
Description: 'Your s3 storage bucket'
Version: Version:
Type: String Type: String
Description: 'hash of template' Description: 'hash of template'
@ -225,11 +221,6 @@ Resources:
Statement: Statement:
- Effect: Allow - Effect: Allow
Action: Action:
# Allow upload to S3
- 's3:GetObject'
- 's3:GetObjectVersion'
- 's3:PutObject'
# Allow the use of secret manager # Allow the use of secret manager
- 'secretsmanager:GetSecretValue' - 'secretsmanager:GetSecretValue'
- 'kms:Decrypt' - 'kms:Decrypt'
@ -340,12 +331,6 @@ Resources:
SecurityGroups: SecurityGroups:
- !Ref EFSServerSecurityGroup - !Ref EFSServerSecurityGroup
S3Bucket:
Type: 'AWS::S3::Bucket'
DeletionPolicy: Retain
Properties:
BucketName: !Ref Storage
Outputs: Outputs:
EfsFileStorageId: EfsFileStorageId:
Description: 'The connection endpoint for the database.' Description: 'The connection endpoint for the database.'