From ad57ed8bbfbb9a6c0716181e97ffdd4e4fdd342c Mon Sep 17 00:00:00 2001 From: LoneRifle Date: Tue, 13 Aug 2024 12:10:00 +0800 Subject: [PATCH] fix: give up isolating ddb subnet, figure out later --- lib/formsg-on-cdk-stack.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/formsg-on-cdk-stack.ts b/lib/formsg-on-cdk-stack.ts index 6bc4e6f..732c002 100644 --- a/lib/formsg-on-cdk-stack.ts +++ b/lib/formsg-on-cdk-stack.ts @@ -58,15 +58,15 @@ export class FormsgOnCdkStack extends cdk.Stack { password: cdk.SecretValue.secretsManager(ddbPassSecret.secretArn), }, vpc, - vpcSubnets: { - subnets: vpc.availabilityZones.map((availabilityZone, index) => { - return new ec2.PrivateSubnet(this, `ddb-subnet-${index}`, { - availabilityZone, - vpcId: vpc.vpcId, - cidrBlock: `10.0.${2 + index}.0/24`, - }) - }) - }, + // vpcSubnets: { + // subnets: vpc.availabilityZones.map((availabilityZone, index) => { + // return new ec2.PrivateSubnet(this, `ddb-subnet-${index}`, { + // availabilityZone, + // vpcId: vpc.vpcId, + // cidrBlock: `10.0.${37 + index}.0/24`, + // }) + // }) + // }, // Use t3 medium instances to take advantage of the free tier, // providing 750 machine hours free per month // See https://aws.amazon.com/documentdb/free-trial/