Skip to content

Commit

Permalink
chore(ec2): add isolated subnets to the dummy VpcContextResponse (#19279
Browse files Browse the repository at this point in the history
)

The lack of isolated subnet groups in the dummy response causes VPC lookups to fail.

Fixes #19122.

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
otaviomacedo authored Mar 8, 2022
1 parent a554412 commit 05f8b6f
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions packages/@aws-cdk/aws-ec2/lib/vpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2222,6 +2222,24 @@ const DUMMY_VPC_PROPS: cxapi.VpcContextResponse = {
},
],
},
{
name: 'Isolated',
type: cxapi.VpcSubnetGroupType.ISOLATED,
subnets: [
{
availabilityZone: 'dummy1a',
subnetId: 'p-12345',
routeTableId: 'rtb-12345p',
cidr: '1.2.3.4/5',
},
{
availabilityZone: 'dummy1b',
subnetId: 'p-67890',
routeTableId: 'rtb-57890p',
cidr: '1.2.3.4/5',
},
],
},
],
vpcId: 'vpc-12345',
};

0 comments on commit 05f8b6f

Please sign in to comment.