Skip to content

Commit 05f8b6f

Browse files
authored
chore(ec2): add isolated subnets to the dummy VpcContextResponse (#19279)
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*
1 parent a554412 commit 05f8b6f

File tree

1 file changed

+18
-0
lines changed
  • packages/@aws-cdk/aws-ec2/lib

1 file changed

+18
-0
lines changed

packages/@aws-cdk/aws-ec2/lib/vpc.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2222,6 +2222,24 @@ const DUMMY_VPC_PROPS: cxapi.VpcContextResponse = {
22222222
},
22232223
],
22242224
},
2225+
{
2226+
name: 'Isolated',
2227+
type: cxapi.VpcSubnetGroupType.ISOLATED,
2228+
subnets: [
2229+
{
2230+
availabilityZone: 'dummy1a',
2231+
subnetId: 'p-12345',
2232+
routeTableId: 'rtb-12345p',
2233+
cidr: '1.2.3.4/5',
2234+
},
2235+
{
2236+
availabilityZone: 'dummy1b',
2237+
subnetId: 'p-67890',
2238+
routeTableId: 'rtb-57890p',
2239+
cidr: '1.2.3.4/5',
2240+
},
2241+
],
2242+
},
22252243
],
22262244
vpcId: 'vpc-12345',
22272245
};

0 commit comments

Comments
 (0)