SubnetSelection: setting onePerAz to true, still returns all subnets from an AZ #24155
Labels
@aws-cdk/aws-ec2
Related to Amazon Elastic Compute Cloud
bug
This issue is a bug.
duplicate
This issue is a duplicate.
Describe the bug
When using subnetSelection as below, it still returns all subnets from all AZs whereas it should be returning just one per AZ.
Even the below returns all subnets from all AZs
I'm unable to find a way to get it to contain just one subnet.
Expected Behavior
It should return one subnet per AZ
Current Behavior
Its returning all subnets from all AZs
Reproduction Steps
cdk.aws_ecs_patterns.ApplicationLoadBalancedFargateServiceProps
fortaskSubnets
Possible Solution
No response
Additional Information/Context
This was also highlighted in a previous issue : #6217
CDK CLI Version
2.59.0 (build b24095d)
Framework Version
No response
Node.js Version
18.12.1.
OS
Mac OS Ventura 13.2
Language
Typescript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: