Simple EKS

Terraform scripts to create a simple AWS EKS using the module eks.

To create a simple AWS EKS:

terraform init
terraform plan
terraform apply

To delete all resource:

terraform destroy

Requirements

Name

Version

terraform

>= 1.0

aws

>= 5.61

external

~> 2.3.1

helm

~> 2.10.1, < 3.0.0

kubernetes

~> 2.21.1

null

>= 3.2.1

Providers

Name

Version

aws

>= 5.61

external

~> 2.3.1

null

>= 3.2.1

Modules

Name

Source

Version

eks

../..

n/a

Resources

Name

Type

null_resource.timestamp

resource

aws_caller_identity.current

data source

aws_subnets.subnets

data source

aws_vpc.default

data source

external_external.static_timestamp

data source

Inputs

Name

Description

Type

Default

Required

aws_profile

Profile of AWS credentials to deploy Terraform sources

string

"default"

no

aws_region

AWS region where the infrastructure will be deployed

string

"eu-west-3"

no

Outputs

Name

Description

cluster_id

EKS cluster ID

cluster_name

EKS cluster name

eks

EKS parameters

eks_managed_worker_iam_role_names

list of the EKS managed workers IAM role names

fargate_profiles_worker_iam_role_names

list of the fargate profile workers IAM role names

issuer

EKS Identity issuer

kubeconfig

Use multiple Kubernetes cluster with KUBECONFIG environment variable

kubeconfig_file

Path of kubeconfig file

self_managed_worker_iam_role_names

list of the self managed workers IAM role names

worker_iam_role_names

list of the workers IAM role names