npm i -D @alma-cdk/aws-interface-endpoints
L3 construct helping with PrivateLink-powered VPC Interface Endpoints for AWS Services.
🚧 Project Stability
This construct is still versioned with v0 major version and breaking changes might be introduced if necessary (without a major version bump), though we aim to keep the API as stable as possible (even within v0 development). We aim to publish v1.0.0 soon and after that breaking changes will be introduced via major version bumps.
Getting Started
Endpoint open to whole isolated subnet
import { AwsInterfaceEndpoints } from '@alma-cdk/aws-interface-endpoints';
import * as ec2 from 'aws-cdk-lib/aws-ec2';
const vpc = new ec2.Vpc();
new AwsInterfaceEndpoints(this, 'EcrInterfaceEndpoint', {
vpc,
services: [
{ id: 'EcrDocker', ec2.InterfaceVpcEndpointAwsService.ECR_DOCKER },
],
});
Session Manager connection endpoints
import { AwsInterfaceEndpoints } from '@alma-cdk/aws-interface-endpoints';
import * as ec2 from 'aws-cdk-lib/aws-ec2';
const vpc = new ec2.Vpc();
new AwsInterfaceEndpoints(this, 'SessionManagerInterfaceEndpoint', {
vpc,
services: AwsInterfaceEndpoints.SessionManagerConnect,
});
Explictly opened endpoints
- In your VPC creation stack
import { AwsInterfaceEndpoints } from '@alma-cdk/aws-interface-endpoints';
import * as ec2 from 'aws-cdk-lib/aws-ec2';
const vpc = new ec2.Vpc();
new AwsInterfaceEndpoints(this, 'EcrInterfaceEndpoint', {
vpc,
open: false,
services: [
{ id: 'EcrDocker', ec2.InterfaceVpcEndpointAwsService.ECR_DOCKER },
],
});
- In some other stack (maybe on a completely different CDK application):
import { AwsInterfaceEndpoints } from '@alma-cdk/aws-interface-endpoints';
import * as ec2 from 'aws-cdk-lib/aws-ec2';
define instance: ec2.Instance;
const endpoints = AwsInterfaceEndpoints.fromAttributes(this, 'EcrInterfaceEndpoint', {
services: [
{ id: 'EcrDocker', ec2.InterfaceVpcEndpointAwsService.ECR_DOCKER },
],
});
endpoints.allowDefaultPromFrom(instance);
https://docs.aws.amazon.com/systems-manager/latest/userguide/setup-create-vpc.html
https://aws.amazon.com/privatelink/pricing/
https://docs.aws.amazon.com/vpc/latest/privatelink/create-interface-endpoint.html
Metadata
Release files for alma-cdk.aws-interface-endpoints 0.0.6
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 |
|---|---|---|---|---|
| alma-cdk.aws-interface-endpoints-0.0.6.tar.gz | 100.9 kB | Without provenance | Details for alma-cdk.aws-interface-endpoints-0.0.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| alma_cdk.aws_interface_endpoints-0.0.6-py3-none-any.whl | Python 3 | none | any | Details for alma_cdk.aws_interface_endpoints-0.0.6-py3-none-any.whl |
Total release size: 200.3 kB
Release files / alma-cdk.aws-interface-endpoints-0.0.6.tar.gz
| Download URL | alma-cdk.aws-interface-endpoints-0.0.6.tar.gz |
|---|---|
| Size | 100.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e305cde79052990034a800878606f1045ab3d62b9be740797d010936fa73ef08
|
|
BLAKE2b-256 checksum How to use checksums |
19b4408c98d6a516182393992f384327c4fbdad1a291eedc2f1596c24ac36988
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.8
|
Release files / alma_cdk.aws_interface_endpoints-0.0.6-py3-none-any.whl
| Download URL | alma_cdk.aws_interface_endpoints-0.0.6-py3-none-any.whl |
|---|---|
| Size | 99.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d9df2b9bd122574b2fe9921ff33332e4bdd1345fa7378cae1d72b1b6e799ca09
|
|
BLAKE2b-256 checksum How to use checksums |
ccf4efe019016ab76967f30af04013fd80d7986a86b887b4d7b51b452dc10e37
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.8
|
Security for alma-cdk.aws-interface-endpoints 0.0.6
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.