This is the documentation for eks module.
This module creates following resources -
- eks cluster in provided subnets with public and private access endpoints
- oidc provider for IRSA
- EKS Managed AddOns
- vpc-cni
- coredns
- kube-proxy
- eks managed node group named
worker
in the provided subnets, creates SPOT instances of type t3.large
This module only requires you to specify eks cluster name, k8s version, vpc id, eks cluster subnet ids and eks managed node groups subnet ids. All the other variables have default values. If the default values are used, this module creates all the resources mentioned above. Please read the documentation below to know details about the variables accepted by this module.
Name |
Description |
Type |
Default |
Required |
control_plane_subnet_ids |
subnet ids where the eks cluster should be created |
list(string) |
n/a |
yes |
eks_cluster_name |
eks cluster name |
string |
n/a |
yes |
eks_node_groups_subnet_ids |
subnet ids where the eks node groups needs to be created |
list(string) |
n/a |
yes |
k8s_version |
kubernetes version |
string |
"1.27" |
no |
vpc_id |
vpc id where the cluster security group needs to be created |
string |
n/a |
yes |
workers_config |
workers config |
map(any) |
{ "worker": { "capacity_type": "SPOT", "desired_size": 1, "instance_types": [ "t3.large" ], "max_size": 2, "min_size": 1 } } |
no |