/terraform-aws-eks-fargate-profile

Terraform module to configure an EKS Fargate Profile

Primary LanguageHCLOtherNOASSERTION

GitHub release (latest SemVer)

terraform-aws-eks-fargate-profile

Terraform module to configure an EKS Fargate Profile.

Terraform versions

Terraform 0.12. Pin module version to ~> v1.0. Submit pull-requests to master branch.

Usage

module "eks-fargate-profile" {
  cluster_name = "eks-test"
  subnet_ids   = ["subnet-037c37205ce1cd88c", "subnet-0bb4e7a5c3120bc47", "subnet-07a58a249f38a1f58"]

  namespace = "kube-system"
  labels = {
    infrastructure = "fargate"
  }

  tags = {
    Environment = "test"
  }
}

Assumptions

Module is to be used with Terraform > 0.12.

Examples

Authors

Module managed by Marcin Cuber LinkedIn.

Requirements

Name Version
terraform >= 0.12.6
aws >= 2.41

Providers

Name Version
aws >= 2.41

Inputs

Name Description Type Default Required
cluster_name The name of the EKS cluster string n/a yes
description The description of the IAM Role used by fargate profile. string "EKS cluster fargate profile IAM role." no
enabled Whether to create the resources. Set to false to prevent the module from creating any resources bool true no
fargate_profile_name Name of the EKS Fargate Profile. If not provided, profile will be called fargate-profile-namespace_name. string "" no
labels Key-value mapping of Kubernetes labels for selection map(string) {} no
namespace Kubernetes namespace for which fargate profile will be used. string "" no
subnet_ids Identifiers of private EC2 Subnets to associate with the EKS Fargate Profile. These subnets must have the following resource tag: kubernetes.io/cluster/cluster_name. list(string) n/a yes
tags Mapping of additional tags. map(string) {} no

Outputs

Name Description
eks_fargate_profile_arn ARN of the EKS Fargate Profile
eks_fargate_profile_id EKS Cluster name and EKS Fargate Profile name separated by a colon
eks_fargate_profile_role_arn ARN of the EKS Fargate Profile IAM role
eks_fargate_profile_role_name Name of the EKS Fargate Profile IAM role
eks_fargate_profile_status Status of the EKS Fargate Profile

License

See LICENSE for full details.

Pre-commit hooks

Install dependencies

MacOS

brew install pre-commit terraform-docs tflint

brew tap git-chglog/git-chglog
brew install git-chglog