Interface VPC Endpoint with Private IP
This is a CDK construct that retrieves the private IP address of an Interface VPC Endpoint:
Architecture
Installation
npm install cdk-vpc-endpoint-with-private-ip
Usage
You can create an interface VPC endpoint and retrive its private IP addresses using the VpcEndpointWithPrivateIp construct.
The ec2.InterfaceVpcEndpointProps can be passed to the construct to configure the interface VPC endpoint.
import { InterfaceVpcEndpointWithPrivateIp } from 'cdk-vpc-endpoint-with-private-ip';
import * as ec2 from 'aws-cdk-lib/aws-ec2';
declare const vpc: ec2.IVpc;
const endpoint = new InterfaceVpcEndpointWithPrivateIp(this, 'Endpoint', {
vpc,
service: ec2.InterfaceVpcEndpointAwsService.S3,
});
const privateIps = endpoint.privateIps;
Note: privateIps is an array of CDK Tokens, and the actual IP addresses are not determined until the stack is deployed.
Special Thanks
I am greatly referencing the content of this post.
Metadata
Release files for cdk-vpc-endpoint-with-private-ip 0.0.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cdk_vpc_endpoint_with_private_ip-0.0.9.tar.gz | 56.5 kB | With provenance | Details for cdk_vpc_endpoint_with_private_ip-0.0.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cdk_vpc_endpoint_with_private_ip-0.0.9-py3-none-any.whl | Python 3 | none | any | Details for cdk_vpc_endpoint_with_private_ip-0.0.9-py3-none-any.whl |
Total release size: 111.7 kB
Release files / cdk_vpc_endpoint_with_private_ip-0.0.9.tar.gz
| Download URL | cdk_vpc_endpoint_with_private_ip-0.0.9.tar.gz |
|---|---|
| Size | 56.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8af1b418f6482b3da2668cbff0b9b379dc22c3d4f787a931b6b1f0dea3b692e0
|
|
BLAKE2b-256 checksum How to use checksums |
2089cf5e881234ea93fe232439b08b995db0aa42f8f2781f565d9566f0a6732a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.14.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 5, 2026.
Transparency logRelease files / cdk_vpc_endpoint_with_private_ip-0.0.9-py3-none-any.whl
| Download URL | cdk_vpc_endpoint_with_private_ip-0.0.9-py3-none-any.whl |
|---|---|
| Size | 55.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0c76bca7cf4ca136ba1640295721fbd22637ce72d424f434860a304b848d5063
|
|
BLAKE2b-256 checksum How to use checksums |
bd0fcb1a8d7c5d630e463d4fe55be5c07787a21d142401b34ea77536358d960b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.14.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 5, 2026.
Transparency logSecurity for cdk-vpc-endpoint-with-private-ip 0.0.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for cdk_vpc_endpoint_with_private_ip-0.0.9.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 5, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.