baked in cloud formation template

pull/387/head
Frostebite 2022-04-20 23:51:30 +01:00
parent 09c6df818f
commit d26cc2b620
4 changed files with 1085 additions and 1089 deletions

26
dist/index.js vendored
View File

@ -1408,9 +1408,9 @@ exports.BaseStackFormation = void 0;
class BaseStackFormation {
}
exports.BaseStackFormation = BaseStackFormation;
BaseStackFormation.formation = ` AWSTemplateFormatVersion: '2010-09-09'
Description: Game-CI base stack
Parameters:
BaseStackFormation.formation = `AWSTemplateFormatVersion: '2010-09-09'
Description: Game-CI base stack
Parameters:
EnvironmentName:
Type: String
Default: development
@ -1424,7 +1424,7 @@ BaseStackFormation.formation = ` AWSTemplateFormatVersion: '2010-09-09'
# Default: 80
# Description: What port number the application inside the docker container is binding to
Mappings:
Mappings:
# Hard values for the subnet masks. These masks define
# the range of internal IP addresses that can be assigned.
# The VPC can have all IP's from 10.0.0.0 to 10.0.255.255
@ -1443,7 +1443,7 @@ BaseStackFormation.formation = ` AWSTemplateFormatVersion: '2010-09-09'
PublicTwo:
CIDR: '10.0.1.0/24'
Resources:
Resources:
# VPC in which containers will be networked.
# It has two public subnets, and two private subnets.
# We distribute the subnets across the first two available subnets
@ -1738,7 +1738,7 @@ BaseStackFormation.formation = ` AWSTemplateFormatVersion: '2010-09-09'
SecurityGroups:
- !Ref EFSServerSecurityGroup
Outputs:
Outputs:
EfsFileStorageId:
Description: 'The connection endpoint for the database.'
Value: !Ref EfsFileStorage
@ -1811,12 +1811,12 @@ exports.TaskDefinitionFormation = void 0;
class TaskDefinitionFormation {
}
exports.TaskDefinitionFormation = TaskDefinitionFormation;
TaskDefinitionFormation.formation = ` AWSTemplateFormatVersion: 2010-09-09
Description: >-
TaskDefinitionFormation.formation = `AWSTemplateFormatVersion: 2010-09-09
Description: >-
AWS Fargate cluster that can span public and private subnets. Supports public
facing load balancers, private internal load balancers, and both internal and
external service discovery namespaces.
Parameters:
Parameters:
EnvironmentName:
Type: String
Default: development
@ -1865,7 +1865,7 @@ TaskDefinitionFormation.formation = ` AWSTemplateFormatVersion: 2010-09-09
Type: String
Default: '/efsdata'
# template secrets p1 - input
Mappings:
Mappings:
SubnetConfig:
VPC:
CIDR: 10.0.0.0/16
@ -1873,12 +1873,12 @@ TaskDefinitionFormation.formation = ` AWSTemplateFormatVersion: 2010-09-09
CIDR: 10.0.0.0/24
PublicTwo:
CIDR: 10.0.1.0/24
Conditions:
Conditions:
HasCustomRole: !Not
- !Equals
- Ref: Role
- ''
Resources:
Resources:
LogGroup:
Type: 'AWS::Logs::LogGroup'
Properties:
@ -1911,9 +1911,7 @@ TaskDefinitionFormation.formation = ` AWSTemplateFormatVersion: 2010-09-09
Metadata:
'AWS::CloudFormation::Designer':
id: c6f18447-b879-4696-8873-f981b2cedd2b
# template secrets p2 - secret
TaskDefinition:
Type: 'AWS::ECS::TaskDefinition'
Properties:

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -1,7 +1,7 @@
export class BaseStackFormation {
public static readonly formation: string = ` AWSTemplateFormatVersion: '2010-09-09'
Description: Game-CI base stack
Parameters:
public static readonly formation: string = `AWSTemplateFormatVersion: '2010-09-09'
Description: Game-CI base stack
Parameters:
EnvironmentName:
Type: String
Default: development
@ -15,7 +15,7 @@ export class BaseStackFormation {
# Default: 80
# Description: What port number the application inside the docker container is binding to
Mappings:
Mappings:
# Hard values for the subnet masks. These masks define
# the range of internal IP addresses that can be assigned.
# The VPC can have all IP's from 10.0.0.0 to 10.0.255.255
@ -34,7 +34,7 @@ export class BaseStackFormation {
PublicTwo:
CIDR: '10.0.1.0/24'
Resources:
Resources:
# VPC in which containers will be networked.
# It has two public subnets, and two private subnets.
# We distribute the subnets across the first two available subnets
@ -329,7 +329,7 @@ export class BaseStackFormation {
SecurityGroups:
- !Ref EFSServerSecurityGroup
Outputs:
Outputs:
EfsFileStorageId:
Description: 'The connection endpoint for the database.'
Value: !Ref EfsFileStorage

View File

@ -1,10 +1,10 @@
export class TaskDefinitionFormation {
public static readonly formation: string = ` AWSTemplateFormatVersion: 2010-09-09
Description: >-
public static readonly formation: string = `AWSTemplateFormatVersion: 2010-09-09
Description: >-
AWS Fargate cluster that can span public and private subnets. Supports public
facing load balancers, private internal load balancers, and both internal and
external service discovery namespaces.
Parameters:
Parameters:
EnvironmentName:
Type: String
Default: development
@ -53,7 +53,7 @@ export class TaskDefinitionFormation {
Type: String
Default: '/efsdata'
# template secrets p1 - input
Mappings:
Mappings:
SubnetConfig:
VPC:
CIDR: 10.0.0.0/16
@ -61,12 +61,12 @@ export class TaskDefinitionFormation {
CIDR: 10.0.0.0/24
PublicTwo:
CIDR: 10.0.1.0/24
Conditions:
Conditions:
HasCustomRole: !Not
- !Equals
- Ref: Role
- ''
Resources:
Resources:
LogGroup:
Type: 'AWS::Logs::LogGroup'
Properties:
@ -99,9 +99,7 @@ export class TaskDefinitionFormation {
Metadata:
'AWS::CloudFormation::Designer':
id: c6f18447-b879-4696-8873-f981b2cedd2b
# template secrets p2 - secret
TaskDefinition:
Type: 'AWS::ECS::TaskDefinition'
Properties: