Skip to content

Commit

Permalink
Migrate to PRIVATE_WITH_EGRESS
Browse files Browse the repository at this point in the history
PRIVATE_WITH_NAT is deprecated. Note that PRIVATE_WITH_EGRESS defaults to the same behaviour as PRIVATE_WITH_NAT, but has the option to set natGateways to 0.

If we are confident that our subnet will never need to make requests to the internet, we can opt to use PRIVATE_ISOLATED instead.
  • Loading branch information
Fweddi committed Jul 12, 2024
1 parent 15f2aa2 commit f3f672b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cdk/lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ EOF
const ruleDB = new GuDatabaseInstance(this, "RuleManagerRDS", {
app: dbAppName,
vpc: ruleManagerApp.vpc,
vpcSubnets: { subnetType: SubnetType.PRIVATE_WITH_NAT },
vpcSubnets: { subnetType: SubnetType.PRIVATE_WITH_EGRESS },
allocatedStorage: 50,
allowMajorVersionUpgrade: false,
autoMinorVersionUpgrade: true,
Expand Down

0 comments on commit f3f672b

Please sign in to comment.