EKS Cluster
Creating a standard cluster with minimal parameters
resources:
# EKS Cluster (non-auto mode)
- type: aws_eks_cluster
name: eks-cluster1
props:
version: "1.31"
role_arn: "arn:aws:iam::123456789012:role/eks-cluster-role"
resources_vpc_config:
subnet_ids:
- "subnet-0123456789abcdef0"
- "subnet-0123456789abcdef1"
endpoint_public_access: true
endpoint_private_access: true
security_group_ids:
- "sg-0123456789abcdef0"
resources:
# Managed Node Group - nested under the cluster
- type: aws_eks_nodegroup
name: eks-nodegroup1
props:
node_role: "arn:aws:iam::123456789012:role/eks-node-role"
subnets:
- "subnet-0123456789abcdef0"
- "subnet-0123456789abcdef1"
scaling_config:
min_size: 1
desired_size: 2
max_size: 3
instance_types:
- "t3.medium"
- "t3.large"
capacity_type: "ON_DEMAND"Example price for above configuration
Creating an auto mode cluster with minimal parameters
Example price for above configuration
Last updated
Was this helpful?