AWS CDK construct library for Amazon EKS Distro
Project description
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cdk-eksdistro-0.0.78.tar.gz.
File metadata
- Download URL: cdk-eksdistro-0.0.78.tar.gz
- Upload date:
- Size: 28.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.3.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.7.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
05999275ff01ed4416e438485b4b8a80a7bd01c11dbcee3db1a42a53c8783339
|
|
| MD5 |
c47924de05ff51e5bb82362a6e2357b5
|
|
| BLAKE2b-256 |
a3c541a9855e16489aaf6322dccc468db27611a4c44b0708ee5b34badfd2c880
|
File details
Details for the file cdk_eksdistro-0.0.78-py3-none-any.whl.
File metadata
- Download URL: cdk_eksdistro-0.0.78-py3-none-any.whl
- Upload date:
- Size: 27.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.3.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.7.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5eee41e5d57b717e0384e1d402df0ab6d6a751a0bf25d23720fc6d262471ab2a
|
|
| MD5 |
ecd0ac3d57e88e9d103df2d84d513b95
|
|
| BLAKE2b-256 |
fdb385bd1fb8f76fd1b157ac51516b8bacc0985f0ee00dfd98450f48ef43f651
|