Create an AWS EKS cluster.
This module provides a base EKS cluster. You will need to setup you environment with the cluster configuration. Example: https://docs.aws.amazon.com/eks/latest/userguide/getting-started.html#eks-configure-kubectl
Create a cluster and get the Kubeconfig data in terraform output.
module "eks_cluster" {
source = "../../modules/tf-aws-eks-cluster"
eks_cluster_name = "test-cluster"
vpc_id = "${module.base_vpc.vpc_id}"
subnet_ids = "${module.base_vpc.private_subnet_ids}"
tags = "${var.tags}"
}
output "kubeconfig" {
value = "${module.eks_cluster.kubeconfig}"
}
Name | Description | Default | Required |
---|---|---|---|
eks_cluster_name | The name of the cluster (up to 255 letters, numbers, hyphens, and underscores). | - | yes |
vpc_id | The ID of the VPC | - | yes |
subnet_ids | List of subnet IDs where the cluster will run | - | yes |
tags | A mapping of tags to assign to the resource | - | yes |
Name | Description |
---|---|
eks_cluster_arn | The Amazon Resource Name (ARN) that identifies the cluster |
eks_cluster_certificate_authority_data | The base64 encoded certificate data required to communicate with the cluster |
eks_cluster_endpoint | The endpoint for the Kubernetes API server |
eks_cluster_version | The Kubernetes server version of the cluster |
eks_sg_id | The ID of the EKS Security Group |
iam_role_id | The Amazon Resource Name (ARN) specifying the role |