Skip to content

Commit de367d0

Browse files
authored
Merge pull request #2 from joe-glasgow/hotfix/save-money
Hotfix/save money
2 parents 759a038 + f8d0b5a commit de367d0

File tree

2 files changed

+4829
-8508
lines changed

2 files changed

+4829
-8508
lines changed

lib/webapp-stack.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,14 @@ export class WebappStack extends cdk.Stack {
2121
privateZone: false,
2222
})
2323

24+
const natGatewayProvider = ec2.NatProvider.instance({
25+
instanceType: new ec2.InstanceType('t2.micro'),
26+
});
27+
2428
const vpc = new ec2.Vpc(this, "WebappVpc", {
25-
maxAzs: 3 // Default is all AZs in region
29+
maxAzs: 2, // Default is all AZs in region
30+
natGateways: 2,
31+
natGatewayProvider
2632
});
2733

2834
const cluster = new ecs.Cluster(this, "WebappCluster", {

0 commit comments

Comments
 (0)