Skip to main content

CDK Construct for a VPC Endpoint with private IPs

Project description

Interface VPC Endpoint with Private IP

This is a CDK construct that creates an interface VPC endpoint with a private IP address.

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 with 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.

Project details


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.0.tar.gz (55.1 kB view details)

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for cdk_vpc_endpoint_with_private_ip-0.0.0.tar.gz
Algorithm Hash digest
SHA256 4352abc8dbe23e293c50d6019c9bf83dd832aff2519c134dd288d657aaba79df
MD5 2a19f7753f62acd9720ce9979992050a
BLAKE2b-256 925ec582e600e6cc420e879516fa4382d62e92979f4be5a85b0ba6faad47fac5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cdk_vpc_endpoint_with_private_ip-0.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4ae4f9293901af040ab4d4cb80037e15c1c0a99da5e5f941ff34299793fadd1f
MD5 269c2bf03ee829d18d0dee2cec50df46
BLAKE2b-256 8bf97e3b0fcfb0f37140c3ad7ad479d88f47a8a877e13753bac0f76b82f9673d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page