From 1400f8c55970d1d52d01f6afa1862f00591ad43a Mon Sep 17 00:00:00 2001 From: Anton Tayanovskyy Date: Wed, 4 Sep 2024 14:04:40 -0400 Subject: [PATCH] Toward #1373: respect auto-allocated subnets in vpcEndpoints --- awsx/ec2/vpc.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awsx/ec2/vpc.ts b/awsx/ec2/vpc.ts index 903a7c63b..9cc1c5317 100644 --- a/awsx/ec2/vpc.ts +++ b/awsx/ec2/vpc.ts @@ -145,7 +145,7 @@ export class Vpc extends schema.Vpc { privateDnsEnabled: spec.privateDnsEnabled, routeTableIds: spec.routeTableIds, securityGroupIds: spec.securityGroupIds, - subnetIds: spec.subnetIds, + subnetIds: subnets.map(s => s.id), tags: spec.tags, vpcEndpointType: spec.vpcEndpointType, vpcId: vpc.id,