(eks): clarify that vpc prop is necessary for subnetSelection prop to work in FargateProfile construct #16349
Labels
@aws-cdk/aws-eks
Related to Amazon Elastic Kubernetes Service
documentation
This is a problem with documentation.
feature-request
A feature should be added or improved.
p1
There's a check in the FargateProfile constructor which only uses the
subnetSelection
prop if thevpc
prop is defined:aws-cdk/packages/@aws-cdk/aws-eks/lib/fargate-profile.ts
Lines 159 to 163 in 6c15150
However our docs don't make this clear, which lead to customer confusion from having all of their private subnets be selected. We should clarify that the vpc prop also needs to be defined for the subnetSelection prop to work.
Additionally, we could throw an error if the subnetSelection prop is defined and the vpc isn't, but I'm not sure if that would be a breaking change.
This is a 📕 documentation issue
The text was updated successfully, but these errors were encountered: