aws-cdk
aws-cdk copied to clipboard
EC2: SupportedIpAddressType support for VpcEndpointService
Describe the feature
The CreateVpcEndpointServiceConfiguration EC2 API supports the SupportedIpAddressType parameter. We would like the same parameter to be configurable through the VpcEndpointService CDK construct.
Use Case
We are creating a VPC Endpoint Service for our DualStack Network Load Balancer. When creating the VpcEndpointService, the supported IP address types is only IPv4.
Proposed Solution
Support the supportedIpAddressType parameter for the VpcEndpointService construct:
new VpcEndpointService(this, 'TestVpcEndpointService', {
vpcEndpointServiceLoadBalancers: [testLoadBalancer1, testLoadBalancer2],
allowedPrincipals: [new ArnPrincipal('arn:aws:iam::xxxxxxxxxxxx:role/TestRole')],
acceptanceRequired: true,
contributorInsights: true,
supportedIpAddressType, IpAddressType.DUAL_STACK,
});
Other Information
Our current workaround is to make a ModifyVpcEndpointServiceConfiguration call to add IPv6 support, but would like for the VpcEndpointService construct to support this during creation.
Acknowledgements
- [X] I may be able to implement this feature request
- [ ] This feature might incur a breaking change
CDK version used
2.135.0
Environment details (OS name and version, etc.)
AL2