[ec2-vpc]: SubnetSelection with AZs with vpc contruct in same application #27540
Labels
@aws-cdk/aws-ec2
Related to Amazon Elastic Compute Cloud
documentation
This is a problem with documentation.
effort/small
Small work item – less than a day of effort
feature-request
A feature should be added or improved.
p2
Describe the issue
Hello team,
We identified an issue: the
.selectSubnets()
method doesn't function withavailabilityZones
when the VPC is within the same application, example snippet:Upon verification, it's apparent that the AZ value acts as the TOKEN placeholder during the stack's synthesis, leading the above selectedSubnets to return empty. Notably, this operates correctly if the VPC is imported from an existing one.
Should this be intended behavior, might we request an update to the documentation, specifically regarding the
availabilityZones
parameter within theSubnetSelection
interface, to prevent future confusion?Links
e
The text was updated successfully, but these errors were encountered: