Skip to main content

AWS CDK construct library for Amazon EKS Distro

Project description

NPM version PyPI version Release

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

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

cdk-eksdistro-2.0.13.tar.gz (33.0 kB view details)

Uploaded Source

Built Distribution

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

cdk_eksdistro-2.0.13-py3-none-any.whl (31.4 kB view details)

Uploaded Python 3

File details

Details for the file cdk-eksdistro-2.0.13.tar.gz.

File metadata

  • Download URL: cdk-eksdistro-2.0.13.tar.gz
  • Upload date:
  • Size: 33.0 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for cdk-eksdistro-2.0.13.tar.gz
Algorithm Hash digest
SHA256 708e7777eff7d8c23bfac0425e548d6568a7216d9ed200dcba9fbe6b199746fd
MD5 b7d89ae49cea89da4704bd8e47c796c8
BLAKE2b-256 5669441511c80a217e2a872c83a85c3149119c3e90880da16e140761349b657d

See more details on using hashes here.

File details

Details for the file cdk_eksdistro-2.0.13-py3-none-any.whl.

File metadata

  • Download URL: cdk_eksdistro-2.0.13-py3-none-any.whl
  • Upload date:
  • Size: 31.4 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for cdk_eksdistro-2.0.13-py3-none-any.whl
Algorithm Hash digest
SHA256 9443b462ef755596ffece03db8bd61ba2b4ea8974aab7cf857820c3eade2e775
MD5 f645012cfa6d5dc02662e045948e823d
BLAKE2b-256 9caf3b1e38e6d907279b8b31b45c1f9de39fead4ab458da6f6f0551e8c84150e

See more details on using hashes here.

Supported by

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