vpc: throw an error if subnets() call doesn't match any subnets #1239
Labels
@aws-cdk/aws-ec2
Related to Amazon Elastic Compute Cloud
feature-request
A feature should be added or improved.
If there are no subnets of a certain type, the
subnets()
call returns an empty array. An error probably makes more sense. This would have saved Clare from some confusing situations.The text was updated successfully, but these errors were encountered: