Skip to content

my-aws-projects/tf-aws-eks-cluster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Martin Canovas
Feb 22, 2019
834b296 · Feb 22, 2019

History

2 Commits
Feb 22, 2019
Feb 22, 2019
Feb 22, 2019
Feb 22, 2019
Feb 22, 2019
Feb 22, 2019
Feb 22, 2019
Feb 22, 2019

Repository files navigation

tf-aws-eks-cluster

Create an AWS EKS cluster.

Usage

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

Example

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}"
}

Inputs

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

Outputs

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

About

This Terraform module provides a basic EKS cluster.

Resources

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published