Skip to content

ianuragsingh/simple-eks-cluster

Repository files navigation

Scope

This module creates a simple EKS cluster with basic requirements as in the AWS documentation using infrastructure as a code tool Terraform

Requirements

Name Version
terraform >= 1.0
aws >= 4.0
kubernetes >= 2.10

Providers

Name Version
aws >= 4.0

Modules

Name Source Version
vpc terraform-aws-modules/vpc/aws >3.18.0

Resources

Name Type
aws_eks_cluster.this resource
aws_eks_node_group.this resource
aws_iam_role.cluster_role resource
aws_iam_role.workers_role resource
aws_iam_role_policy_attachment.cluster_role_policy_attachment resource
aws_iam_role_policy_attachment.workers_role_policy_attachment resource
aws_caller_identity.current data source
aws_partition.current data source
aws_region.current data source

Inputs

Name Description Type Default Required
cluster_iam_boundary IAM boundary for the cluster IAM role, if any string null no
cluster_iam_role Cluster IAM Role name. If undefined, is the same as the cluster name string "" no
cluster_name Name of the EKS Cluster. Must be between 1-100 characters in length. Must begin with an alphanumeric character, and must only contain alphanumeric characters, dashes and underscores (^[0-9A-Za-z][A-Za-z0-9-_]+$). string "simple-eks-cluster" no
create_vpc Flag to create vpc, default false bool false no
desired_size Desired size of the worker node, the default value is 2 number 2 no
iam_role_additional_policies Additional policies to be added to the IAM role set(string) [] no
instance_types List of instance types associated with the EKS Node Group. the default vaule is ["t3.medium"]. Terraform will only perform drift detection if a configuration value is provided. list(string)
[
"t3.medium"
]
no
max_size Maximum size of the worker node, the default value is 2 number 2 no
min_size Minimum size of the worker node, the default value is 1 number 1 no
subnet_ids Subnet ids of cluster resources bool false no
tags AWS resource tags map(string) {} no
vpc_cidr The Cidr of VPC where cluster will be created on, the default value is "10.0.0.0/16" string "10.0.0.0/16" no
vpc_name Name of VPC where cluster will be created on string "my-vpc" no
workers_iam_boundary IAM boundary for the workers IAM role, if any string null no
workers_iam_role Workers IAM Role name. If undefined, is the same as the cluster name suffixed with 'workers' string "" no

Outputs

Name Description
cert Certificate authority
cluster_arn EKS Cluster ARN
cluster_host Endpoint for EKS API server.
cluster_name Name of the cluster.
cluster_security_group_id Cluster security group that was created by Amazon EKS for the cluster. Managed node groups use this security group for control-plane-to-data-plane communication.
identity Attribute block containing identity provider information for your cluster
vpc_id ID of the VPC associated with your cluster.

About

Simple module to create EKS cluster

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages