All Modules
AWSCompute

EKS

Elastic Kubernetes Service cluster with managed node groups and OIDC provider

Usage

module "eks" {
  source = "github.com/fencepencil/fencepencil-aws-modules//eks"

  cluster_name = "<cluster_name>"
  subnet_ids = ["<value>"]
  vpc_id = "<vpc_id>"

  tags = var.tags
}

Inputs (8)

NameTypeDescriptionDefaultRequired
cluster_namestringName of the EKS clusteryes
cluster_versionstringKubernetes version1.32no
subnet_idslist(string)Subnet IDs for the clusteryes
vpc_idstringID of the VPCyes
endpoint_public_accessboolPublic API server accesstrueno
cluster_log_typeslist(string)Control plane log types to enable["api", "audit", "authenticator"]no
node_groupsanyMap of EKS managed node group definitionssingle t3.medium groupno
tagsmap(string)Tags to apply to all resources{}no

Outputs (6)

NameDescription
cluster_idThe EKS cluster ID
cluster_nameThe EKS cluster name
cluster_endpointAPI server endpoint
oidc_providerOIDC provider URL (for IRSA)
oidc_provider_arnOIDC provider ARN (for IRSA)
node_groupsManaged node groups

More AWS Modules

Browse our full library of AWS infrastructure modules.

View all AWS modules