Is your feature request related to a problem? Please describe.
Currently, InstanceConnectEndpoint always selects the first subnet from the default Vpc.selectSubnets() output.
This makes it impossible to control which subnet the endpoint is placed on, which can be critical in scenarios where specific subnets are required
|
subnetId: this.props.vpc.selectSubnets().subnetIds[0], |
Would you be willing to help with a PR?
Describe the solution you'd like
Add a new property, e.g., subnet, to the InstanceConnectEndpointProps interface.
Describe alternatives you've considered
Additional context
Is your feature request related to a problem? Please describe.
Currently, InstanceConnectEndpoint always selects the first subnet from the default Vpc.selectSubnets() output.
This makes it impossible to control which subnet the endpoint is placed on, which can be critical in scenarios where specific subnets are required
aws-cdk-library/src/aws-ec2/instance-connect-endpoint.ts
Line 133 in cf075d0
Would you be willing to help with a PR?
Describe the solution you'd like
Add a new property, e.g.,
subnet, to the InstanceConnectEndpointProps interface.Describe alternatives you've considered
Additional context