CDKTF construct library for Amazon EKS
Project description
cdktf-aws-eks
CDKTF construct library for Amazon EKS.
Usage
The following sample creates:
- A new VPC
- Amazon EKS cluster(control plane)
- The default nodegroup with the cluster
- The 2nd nodegroup with spot instances
# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
from pahud.cdktf_aws_eks import Cluster
# create the cluster and the default nodegroup
cluster = Cluster(stack, "demo-cluster",
version=KubernetesVersion.V1_21,
scaling_config={"min_capacity": 1}
)
# create the optional 2nd nodegroup
cluster.add_node_group("NG2",
scaling_config={
"min_capacity": 1,
"max_capacity": 10,
"desired_capacity": 5
},
capacity_type=CapacityType.SPOT,
instance_types=["t3.large", "c5.large", "m5.large"]
)
Existing VPC subnets
To deploy in any existing VPC, specify the privateSubnets
and publicSubnets
(if any).
# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
Cluster(stack, "demo-cluster",
private_subnets=["subnet-111", "subnet-222", "subnet-333"],
public_subnets=["subnet-444", "subnet-555", "subnet-666"],
version=KubernetesVersion.V1_21
)
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
pahud-cdktf-aws-eks-0.3.0.tar.gz
(73.3 kB
view hashes)
Built Distribution
Close
Hashes for pahud-cdktf-aws-eks-0.3.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3bd6727b22e5c816ae930708fe67504e93b53e26c1938b8e3ed94444b41796be |
|
MD5 | b7005c9c4e96fe2c2a71170626176655 |
|
BLAKE2b-256 | 46f1523d145a1f3b9c62fd4d9b8437d169dadfcc7f51a7be3e7aab32c13ff334 |
Close
Hashes for pahud_cdktf_aws_eks-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 963f88cb43d12b545bee70591618764b7160e2a98fac1027c66b97ba5e99d448 |
|
MD5 | bdafe5618732a3f63afbcb9d0ddf8cd1 |
|
BLAKE2b-256 | 9653f4a2bd398f672ae7e7dd63e2d27237d459c8b127f88ec8b81856824a8a68 |