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.
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
Built Distribution
File details
Details for the file cdk_vpc_endpoint_with_private_ip-0.0.0.tar.gz
.
File metadata
- Download URL: cdk_vpc_endpoint_with_private_ip-0.0.0.tar.gz
- Upload date:
- Size: 55.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4352abc8dbe23e293c50d6019c9bf83dd832aff2519c134dd288d657aaba79df |
|
MD5 | 2a19f7753f62acd9720ce9979992050a |
|
BLAKE2b-256 | 925ec582e600e6cc420e879516fa4382d62e92979f4be5a85b0ba6faad47fac5 |
File details
Details for the file cdk_vpc_endpoint_with_private_ip-0.0.0-py3-none-any.whl
.
File metadata
- Download URL: cdk_vpc_endpoint_with_private_ip-0.0.0-py3-none-any.whl
- Upload date:
- Size: 54.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ae4f9293901af040ab4d4cb80037e15c1c0a99da5e5f941ff34299793fadd1f |
|
MD5 | 269c2bf03ee829d18d0dee2cec50df46 |
|
BLAKE2b-256 | 8bf97e3b0fcfb0f37140c3ad7ad479d88f47a8a877e13753bac0f76b82f9673d |