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.

Sample

# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
imoprtClusterfrom"cdk-eksdistro"

app = cdk.App()

env = {
    "region": process.env.CDK_DEFAULT_REGION,
    "account": process.env.CDK_DEFAULT_ACCOUNT
}

stack = cdk.Stack(app, "eksdistro-stack", env=env)

Cluster(stack, "Cluster")

Spot Instance

To create Amazon EC2 Spot instance instead of on-demand, use the spot property:

# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
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-0.0.10.tar.gz (22.8 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-0.0.10-py3-none-any.whl (22.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cdk-eksdistro-0.0.10.tar.gz
  • Upload date:
  • Size: 22.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.9

File hashes

Hashes for cdk-eksdistro-0.0.10.tar.gz
Algorithm Hash digest
SHA256 3e4b21b83d2fcfd7f786498be1002f9f7d86cfe989461eee373b804e44d1df4d
MD5 a472cff160b7c7b3e697c9ed19c0a035
BLAKE2b-256 109f1e2b4a87438895be022ae65319b563daacfe1725ba6749c2b4bf17369737

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cdk_eksdistro-0.0.10-py3-none-any.whl
  • Upload date:
  • Size: 22.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.9

File hashes

Hashes for cdk_eksdistro-0.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 ad6f9402affb2d0913ac03f1edd23fa27967b97507ce09a189480b709367660c
MD5 e27c9cfda6d58e0288e84c3b6d9a6d2b
BLAKE2b-256 64479510b370d063fce92d5fb5954297783047f464328eb0840b878ce2889c31

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