ec2.Vpc.from_lookup fails to recognise any private subnets #3442
Labels
@aws-cdk/aws-ec2
Related to Amazon Elastic Compute Cloud
bug
This issue is a bug.
response-requested
Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
I'm submitting a 🪲 bug report
What is the current behavior?
When utilising an exisiting VPC to deploy, ec2.Vpc.from_lookup will fail to recognise any subnets other than the public subnets.
Any further attempt to deploy components to a Private subnet (through choice or design) will therefore fail
For instance:
eks cluster will not create as no private subnet
ecs cluster will not create as no private subnet
autoscaling group with subnet type set to private will not create
What is the expected behavior (or behavior of feature suggested)?
Private subnets should be detected by ec2.Vpc.from_lookup
OS: Windows 10
cdk --version
1.1.0 (build 1a11e96)
python --version
Python 3.7.4
The text was updated successfully, but these errors were encountered: