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
Hi @jsicheng , thanks for reaching out. For this property to be supported by CDK, it has to be first available by Cloudformation as its missing the cloudformation support right now -https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpointservice.html#cfn-ec2-vpcendpointservice-networkloadbalancerarns
For that purpose, you could start with creating an an enhancement feature request with Cloudformation team on their coverage roadmap. Once its provided in cloudformation, it could be further made available via L2 construct.
let me know if you need any more help or guidance on the same. Thanks.
https://github.com/aws/aws-cdk/pull/33877
^ This issue seems to be resolved by the linked issue from @lvthillo