Implementing a Deployment solution for AWS #152
@@ -13,7 +13,8 @@ export class DeployStack extends cdk.Stack {
|
|||||||
super(scope, id, props);
|
super(scope, id, props);
|
||||||
// create vpc with 3 subnets
|
// create vpc with 3 subnets
|
||||||
const vpc = new ec2.Vpc(this, "LocalTunnelVPC", {
|
const vpc = new ec2.Vpc(this, "LocalTunnelVPC", {
|
||||||
maxAzs: 3
|
maxAzs: 3,
|
||||||
|
natGateways: 0
|
||||||
})
|
})
|
||||||
// create the ecs cluster
|
// create the ecs cluster
|
||||||
const cluster = new ecs.Cluster(this, "LocalTunnelCluster", {
|
const cluster = new ecs.Cluster(this, "LocalTunnelCluster", {
|
||||||
@@ -54,7 +55,8 @@ export class DeployStack extends cdk.Stack {
|
|||||||
recordType: ecs_patterns.ApplicationLoadBalancedServiceRecordType.ALIAS,
|
recordType: ecs_patterns.ApplicationLoadBalancedServiceRecordType.ALIAS,
|
||||||
listenerPort: 443,
|
listenerPort: 443,
|
||||||
domainName: domainName,
|
domainName: domainName,
|
||||||
domainZone: DNSZone
|
domainZone: DNSZone,
|
||||||
|
assignPublicIp: true
|
||||||
})
|
})
|
||||||
// set health route
|
// set health route
|
||||||
localtunnelsvc.targetGroup.configureHealthCheck({
|
localtunnelsvc.targetGroup.configureHealthCheck({
|
||||||
|
|||||||
Reference in New Issue
Block a user