cdk-eksdistro
CDK construct library that allows you to create Amazon EKS Distro on Amaozn EC2 instance(s).
How it works
Under the hood, cdk-eksdistro creates an Amazon Auto Scaling Group with single Amazon EC2 instance running Ubuntu Linux LTS 20.04 and installs the eks snap from the UserData.
Install
Use the npm dist tag to opt in CDKv1 or CDKv2:
// for CDKv2
npm install cdk-eksdistro
or
npm install cdk-eksdistro@latest
// for CDKv1
npm install cdk-eksdistro@cdkv1
Sample
imoprt { Cluster } from 'cdk-eksdistro';
const app = new cdk.App();
const env = {
region: process.env.CDK_DEFAULT_REGION,
account: process.env.CDK_DEFAULT_ACCOUNT,
};
const stack = new cdk.Stack(app, 'eksdistro-stack', { env });
new Cluster(stack, 'Cluster');
Spot Instance
To create Amazon EC2 Spot instance instead of on-demand, use the spot property:
new Cluster(stack, 'Cluster', { spot: true });
Validate the cluster
By default, the Cluster construct creates a single-node EKS-D cluster on AWS EC2 with the latest Ubuntu Linux LTS AMI. To validate the cluster, open the EC2 console, select the instance and click the Connect button and select session manager.
Run the following commands to execute kubectl in the cluster.
Reference
Metadata
Release files for cdk-eksdistro 2.0.13
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 | |
|---|---|---|---|---|
| cdk-eksdistro-2.0.13.tar.gz | 33.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cdk_eksdistro-2.0.13-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 64.4 kB
Release files / cdk-eksdistro-2.0.13.tar.gz
| Download URL | cdk-eksdistro-2.0.13.tar.gz |
|---|---|
| Size | 33.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
708e7777eff7d8c23bfac0425e548d6568a7216d9ed200dcba9fbe6b199746fd
|
|
BLAKE2b-256 checksum How to use checksums |
5669441511c80a217e2a872c83a85c3149119c3e90880da16e140761349b657d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2
|
Release files / cdk_eksdistro-2.0.13-py3-none-any.whl
| Download URL | cdk_eksdistro-2.0.13-py3-none-any.whl |
|---|---|
| Size | 31.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9443b462ef755596ffece03db8bd61ba2b4ea8974aab7cf857820c3eade2e775
|
|
BLAKE2b-256 checksum How to use checksums |
9caf3b1e38e6d907279b8b31b45c1f9de39fead4ab458da6f6f0551e8c84150e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2
|
Security for cdk-eksdistro 2.0.13
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.