aws-cdk icon indicating copy to clipboard operation
aws-cdk copied to clipboard

EC2: SupportedIpAddressType support for VpcEndpointService

Open jsicheng opened this issue 1 year ago • 1 comments

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

jsicheng avatar Oct 17 '24 17:10 jsicheng