Files
terraform-aws-eks/examples/fargate

AWS EKS Cluster with Fargate profiles

Configuration in this directory creates EKS cluster with Fargate profiles in two different ways:

  • Using a root module, where EKS Cluster and Fargate profiles should be created at once. This is the default behaviour for most users.
  • Using modules/fargate submodule where Fargate profiles should be attached to the barebone EKS Cluster.

Usage

To run this example you need to execute:

$ terraform init
$ terraform plan
$ terraform apply

Note that this example may create resources which cost money. Run terraform destroy when you don't need these resources.

Requirements

Name Version
terraform >= 0.13.1
aws >= 3.22.0
kubernetes >= 1.11
local >= 1.4
random >= 2.1

Providers

Name Version
aws >= 3.22.0
terraform n/a

Modules

Name Source Version
barebone_eks ../..
eks ../..
fargate_profile_existing_cluster ../../modules/fargate

Resources

Name Type
aws_eks_cluster.barebone data source
aws_eks_cluster.cluster data source
aws_eks_cluster_auth.barebone data source
aws_eks_cluster_auth.cluster data source
terraform_remote_state.bootstrap data source

Inputs

No inputs.

Outputs

Name Description
cluster_endpoint Endpoint for EKS control plane.
cluster_security_group_id Security group ids attached to the cluster control plane.
config_map_aws_auth A kubernetes configuration to authenticate to this EKS cluster.
fargate_profile_arns Outputs from node groups
kubectl_config kubectl config as generated by the module.