baked in cloud formation template
parent
09c6df818f
commit
d26cc2b620
|
|
@ -1408,9 +1408,9 @@ exports.BaseStackFormation = void 0;
|
||||||
class BaseStackFormation {
|
class BaseStackFormation {
|
||||||
}
|
}
|
||||||
exports.BaseStackFormation = BaseStackFormation;
|
exports.BaseStackFormation = BaseStackFormation;
|
||||||
BaseStackFormation.formation = ` AWSTemplateFormatVersion: '2010-09-09'
|
BaseStackFormation.formation = `AWSTemplateFormatVersion: '2010-09-09'
|
||||||
Description: Game-CI base stack
|
Description: Game-CI base stack
|
||||||
Parameters:
|
Parameters:
|
||||||
EnvironmentName:
|
EnvironmentName:
|
||||||
Type: String
|
Type: String
|
||||||
Default: development
|
Default: development
|
||||||
|
|
@ -1424,7 +1424,7 @@ BaseStackFormation.formation = ` AWSTemplateFormatVersion: '2010-09-09'
|
||||||
# Default: 80
|
# Default: 80
|
||||||
# Description: What port number the application inside the docker container is binding to
|
# Description: What port number the application inside the docker container is binding to
|
||||||
|
|
||||||
Mappings:
|
Mappings:
|
||||||
# Hard values for the subnet masks. These masks define
|
# Hard values for the subnet masks. These masks define
|
||||||
# the range of internal IP addresses that can be assigned.
|
# 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
|
# 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:
|
PublicTwo:
|
||||||
CIDR: '10.0.1.0/24'
|
CIDR: '10.0.1.0/24'
|
||||||
|
|
||||||
Resources:
|
Resources:
|
||||||
# VPC in which containers will be networked.
|
# VPC in which containers will be networked.
|
||||||
# It has two public subnets, and two private subnets.
|
# It has two public subnets, and two private subnets.
|
||||||
# We distribute the subnets across the first two available subnets
|
# We distribute the subnets across the first two available subnets
|
||||||
|
|
@ -1738,7 +1738,7 @@ BaseStackFormation.formation = ` AWSTemplateFormatVersion: '2010-09-09'
|
||||||
SecurityGroups:
|
SecurityGroups:
|
||||||
- !Ref EFSServerSecurityGroup
|
- !Ref EFSServerSecurityGroup
|
||||||
|
|
||||||
Outputs:
|
Outputs:
|
||||||
EfsFileStorageId:
|
EfsFileStorageId:
|
||||||
Description: 'The connection endpoint for the database.'
|
Description: 'The connection endpoint for the database.'
|
||||||
Value: !Ref EfsFileStorage
|
Value: !Ref EfsFileStorage
|
||||||
|
|
@ -1811,12 +1811,12 @@ exports.TaskDefinitionFormation = void 0;
|
||||||
class TaskDefinitionFormation {
|
class TaskDefinitionFormation {
|
||||||
}
|
}
|
||||||
exports.TaskDefinitionFormation = TaskDefinitionFormation;
|
exports.TaskDefinitionFormation = TaskDefinitionFormation;
|
||||||
TaskDefinitionFormation.formation = ` AWSTemplateFormatVersion: 2010-09-09
|
TaskDefinitionFormation.formation = `AWSTemplateFormatVersion: 2010-09-09
|
||||||
Description: >-
|
Description: >-
|
||||||
AWS Fargate cluster that can span public and private subnets. Supports public
|
AWS Fargate cluster that can span public and private subnets. Supports public
|
||||||
facing load balancers, private internal load balancers, and both internal and
|
facing load balancers, private internal load balancers, and both internal and
|
||||||
external service discovery namespaces.
|
external service discovery namespaces.
|
||||||
Parameters:
|
Parameters:
|
||||||
EnvironmentName:
|
EnvironmentName:
|
||||||
Type: String
|
Type: String
|
||||||
Default: development
|
Default: development
|
||||||
|
|
@ -1865,7 +1865,7 @@ TaskDefinitionFormation.formation = ` AWSTemplateFormatVersion: 2010-09-09
|
||||||
Type: String
|
Type: String
|
||||||
Default: '/efsdata'
|
Default: '/efsdata'
|
||||||
# template secrets p1 - input
|
# template secrets p1 - input
|
||||||
Mappings:
|
Mappings:
|
||||||
SubnetConfig:
|
SubnetConfig:
|
||||||
VPC:
|
VPC:
|
||||||
CIDR: 10.0.0.0/16
|
CIDR: 10.0.0.0/16
|
||||||
|
|
@ -1873,12 +1873,12 @@ TaskDefinitionFormation.formation = ` AWSTemplateFormatVersion: 2010-09-09
|
||||||
CIDR: 10.0.0.0/24
|
CIDR: 10.0.0.0/24
|
||||||
PublicTwo:
|
PublicTwo:
|
||||||
CIDR: 10.0.1.0/24
|
CIDR: 10.0.1.0/24
|
||||||
Conditions:
|
Conditions:
|
||||||
HasCustomRole: !Not
|
HasCustomRole: !Not
|
||||||
- !Equals
|
- !Equals
|
||||||
- Ref: Role
|
- Ref: Role
|
||||||
- ''
|
- ''
|
||||||
Resources:
|
Resources:
|
||||||
LogGroup:
|
LogGroup:
|
||||||
Type: 'AWS::Logs::LogGroup'
|
Type: 'AWS::Logs::LogGroup'
|
||||||
Properties:
|
Properties:
|
||||||
|
|
@ -1911,9 +1911,7 @@ TaskDefinitionFormation.formation = ` AWSTemplateFormatVersion: 2010-09-09
|
||||||
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:
|
||||||
Type: 'AWS::ECS::TaskDefinition'
|
Type: 'AWS::ECS::TaskDefinition'
|
||||||
Properties:
|
Properties:
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -1,7 +1,7 @@
|
||||||
export class BaseStackFormation {
|
export class BaseStackFormation {
|
||||||
public static readonly formation: string = ` AWSTemplateFormatVersion: '2010-09-09'
|
public static readonly formation: string = `AWSTemplateFormatVersion: '2010-09-09'
|
||||||
Description: Game-CI base stack
|
Description: Game-CI base stack
|
||||||
Parameters:
|
Parameters:
|
||||||
EnvironmentName:
|
EnvironmentName:
|
||||||
Type: String
|
Type: String
|
||||||
Default: development
|
Default: development
|
||||||
|
|
@ -15,7 +15,7 @@ export class BaseStackFormation {
|
||||||
# Default: 80
|
# Default: 80
|
||||||
# Description: What port number the application inside the docker container is binding to
|
# Description: What port number the application inside the docker container is binding to
|
||||||
|
|
||||||
Mappings:
|
Mappings:
|
||||||
# Hard values for the subnet masks. These masks define
|
# Hard values for the subnet masks. These masks define
|
||||||
# the range of internal IP addresses that can be assigned.
|
# 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
|
# 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:
|
PublicTwo:
|
||||||
CIDR: '10.0.1.0/24'
|
CIDR: '10.0.1.0/24'
|
||||||
|
|
||||||
Resources:
|
Resources:
|
||||||
# VPC in which containers will be networked.
|
# VPC in which containers will be networked.
|
||||||
# It has two public subnets, and two private subnets.
|
# It has two public subnets, and two private subnets.
|
||||||
# We distribute the subnets across the first two available subnets
|
# We distribute the subnets across the first two available subnets
|
||||||
|
|
@ -329,7 +329,7 @@ export class BaseStackFormation {
|
||||||
SecurityGroups:
|
SecurityGroups:
|
||||||
- !Ref EFSServerSecurityGroup
|
- !Ref EFSServerSecurityGroup
|
||||||
|
|
||||||
Outputs:
|
Outputs:
|
||||||
EfsFileStorageId:
|
EfsFileStorageId:
|
||||||
Description: 'The connection endpoint for the database.'
|
Description: 'The connection endpoint for the database.'
|
||||||
Value: !Ref EfsFileStorage
|
Value: !Ref EfsFileStorage
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
export class TaskDefinitionFormation {
|
export class TaskDefinitionFormation {
|
||||||
public static readonly formation: string = ` AWSTemplateFormatVersion: 2010-09-09
|
public static readonly formation: string = `AWSTemplateFormatVersion: 2010-09-09
|
||||||
Description: >-
|
Description: >-
|
||||||
AWS Fargate cluster that can span public and private subnets. Supports public
|
AWS Fargate cluster that can span public and private subnets. Supports public
|
||||||
facing load balancers, private internal load balancers, and both internal and
|
facing load balancers, private internal load balancers, and both internal and
|
||||||
external service discovery namespaces.
|
external service discovery namespaces.
|
||||||
Parameters:
|
Parameters:
|
||||||
EnvironmentName:
|
EnvironmentName:
|
||||||
Type: String
|
Type: String
|
||||||
Default: development
|
Default: development
|
||||||
|
|
@ -53,7 +53,7 @@ export class TaskDefinitionFormation {
|
||||||
Type: String
|
Type: String
|
||||||
Default: '/efsdata'
|
Default: '/efsdata'
|
||||||
# template secrets p1 - input
|
# template secrets p1 - input
|
||||||
Mappings:
|
Mappings:
|
||||||
SubnetConfig:
|
SubnetConfig:
|
||||||
VPC:
|
VPC:
|
||||||
CIDR: 10.0.0.0/16
|
CIDR: 10.0.0.0/16
|
||||||
|
|
@ -61,12 +61,12 @@ export class TaskDefinitionFormation {
|
||||||
CIDR: 10.0.0.0/24
|
CIDR: 10.0.0.0/24
|
||||||
PublicTwo:
|
PublicTwo:
|
||||||
CIDR: 10.0.1.0/24
|
CIDR: 10.0.1.0/24
|
||||||
Conditions:
|
Conditions:
|
||||||
HasCustomRole: !Not
|
HasCustomRole: !Not
|
||||||
- !Equals
|
- !Equals
|
||||||
- Ref: Role
|
- Ref: Role
|
||||||
- ''
|
- ''
|
||||||
Resources:
|
Resources:
|
||||||
LogGroup:
|
LogGroup:
|
||||||
Type: 'AWS::Logs::LogGroup'
|
Type: 'AWS::Logs::LogGroup'
|
||||||
Properties:
|
Properties:
|
||||||
|
|
@ -99,9 +99,7 @@ export class TaskDefinitionFormation {
|
||||||
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:
|
||||||
Type: 'AWS::ECS::TaskDefinition'
|
Type: 'AWS::ECS::TaskDefinition'
|
||||||
Properties:
|
Properties:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue