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")
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.2.tar.gz
(19.4 kB
view hashes)
Built Distribution
Close
Hashes for cdk_eksdistro-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5c342f6d92797d2b317a86496557eef200df4a52aa20c76747ed0ba645c07b1 |
|
MD5 | 39096b4e1c50ef5897a61cb897802402 |
|
BLAKE2b-256 | 5ef8884ec80dd47b84ee75ddb329e90828ff4e4906629ccd37793ce9f1d2f383 |