Terraform module to configure an EKS Fargate Profile.
Terraform 0.12. Pin module version to ~> v1.0
. Submit pull-requests to master
branch.
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"
}
}
Module is to be used with Terraform > 0.12.
Module managed by Marcin Cuber LinkedIn.
Name | Version |
---|---|
terraform | >= 0.12.6 |
aws | >= 2.41 |
Name | Version |
---|---|
aws | >= 2.41 |
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 |
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 |
See LICENSE for full details.
pre-commit
terraform-docs
required forterraform_docs
hooks.TFLint
required forterraform_tflint
hook.
brew install pre-commit terraform-docs tflint
brew tap git-chglog/git-chglog
brew install git-chglog