Skip to content

Commit

Permalink
fix(guest-webapp-sample): Update subnet type, PRIVATE_WITH_NAT is dep…
Browse files Browse the repository at this point in the history
…recated. (#106)
  • Loading branch information
tkimurz authored Oct 18, 2022
1 parent 180c488 commit bbe4bb7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions usecases/guest-webapp-sample/lib/blea-vpc-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export class BLEAVpcStack extends cdk.Stack {
{
cidrMask: 22,
name: 'Private',
subnetType: ec2.SubnetType.PRIVATE_WITH_NAT,
subnetType: ec2.SubnetType.PRIVATE_WITH_EGRESS,
},
{
cidrMask: 22,
Expand Down Expand Up @@ -101,7 +101,7 @@ export class BLEAVpcStack extends cdk.Stack {
// NACL for Private Subnets
const naclPrivate = new ec2.NetworkAcl(this, 'NaclPrivate', {
vpc: myVpc,
subnetSelection: { subnetType: ec2.SubnetType.PRIVATE_WITH_NAT },
subnetSelection: { subnetType: ec2.SubnetType.PRIVATE_WITH_EGRESS },
});

// Egress Rules for Private Subnets
Expand All @@ -125,7 +125,7 @@ export class BLEAVpcStack extends cdk.Stack {
// VPC Endpoint for S3
myVpc.addGatewayEndpoint('S3EndpointForPrivate', {
service: ec2.GatewayVpcEndpointAwsService.S3,
subnets: [{ subnetType: ec2.SubnetType.PRIVATE_WITH_NAT }, { subnetType: ec2.SubnetType.PRIVATE_ISOLATED }],
subnets: [{ subnetType: ec2.SubnetType.PRIVATE_WITH_EGRESS }, { subnetType: ec2.SubnetType.PRIVATE_ISOLATED }],
});

// VPC Endpoint for SSM
Expand Down

0 comments on commit bbe4bb7

Please sign in to comment.