NAT GW too pricy

This commit is contained in:
Matthew Zhao
2021-03-06 19:25:18 -08:00
parent 9864d02d82
commit cdde636121

View File

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