Skip to main content

Interface VPC Endpoint with Private IP

This is a CDK construct that retrieves the private IP address of an Interface VPC Endpoint:

View on Construct Hub Open in Visual Studio Code npm version Build Status Release Status License npm downloads

Architecture

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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cdk_vpc_endpoint_with_private_ip-0.0.9.tar.gz (56.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file cdk_vpc_endpoint_with_private_ip-0.0.9.tar.gz.

File metadata

File hashes

Hashes for cdk_vpc_endpoint_with_private_ip-0.0.9.tar.gz
Algorithm Hash digest
SHA256 8af1b418f6482b3da2668cbff0b9b379dc22c3d4f787a931b6b1f0dea3b692e0
MD5 e4e417339936f8f29aa50a80b859ceea
BLAKE2b-256 2089cf5e881234ea93fe232439b08b995db0aa42f8f2781f565d9566f0a6732a

See more details on using hashes here.

Provenance

The following attestation bundles were made for cdk_vpc_endpoint_with_private_ip-0.0.9.tar.gz:

Publisher: release.yml on badmintoncryer/cdk-vpc-endpoint-with-private-ip

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cdk_vpc_endpoint_with_private_ip-0.0.9-py3-none-any.whl.

File metadata

File hashes

Hashes for cdk_vpc_endpoint_with_private_ip-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 0c76bca7cf4ca136ba1640295721fbd22637ce72d424f434860a304b848d5063
MD5 cf1e99493f8842073c5e31a77f163344
BLAKE2b-256 bd0fcb1a8d7c5d630e463d4fe55be5c07787a21d142401b34ea77536358d960b

See more details on using hashes here.

Provenance

The following attestation bundles were made for cdk_vpc_endpoint_with_private_ip-0.0.9-py3-none-any.whl:

Publisher: release.yml on badmintoncryer/cdk-vpc-endpoint-with-private-ip

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.0.9 This release

2 files

0.0.8

2 files

0.0.7

2 files

0.0.6

2 files

0.0.5

2 files

0.0.4

2 files

0.0.3

2 files

0.0.2

2 files

0.0.1

2 files

0.0.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page