eks-fargate-profile

cloudposse/eks-fargate-profile/aws

Terraform Module HCL AWS

Terraform module to provision an EKS Fargate Profile

Install
module "eks-fargate-profile" {
source = "cloudposse/eks-fargate-profile/aws"
version = "1.3.1"
}
⭐ Source on GitHub 📦 Registry page
README

Terraform module to provision an AWS Fargate Profile and Fargate Pod Execution Role for EKS. > [!TIP] > #### 👽 Use Atmos with Terraform > Cloud Posse uses atmos to easily orchestrate multiple environments using Terraform. > Works with Github Actions, Atlantis, or Spacelift. > > > Watch demo of using Atmos with Terraform > > Example of running atmos to manage infrastructure from our Quick Start tutorial. > Introduction By default, this module will provision an AWS Fargate Profile and Fargate Pod Execution Role for EKS. Note that in general, you only need one Fargate Pod Execution Role per AWS account, and it can be shared across regions. So if you are creating multiple Faragte Profiles, you can reuse the role created by the first one, or instantiate this module with fargate_profile_enabled

Inputs (30)
NameTypeDescriptionDefault
enabledboolSet to false to prevent the module from creating any resourcesnull
namespacestringID element. Usually an abbreviation of your organization name, e.g. 'eg' or 'cp'null
tenantstringID element _(Rarely used, not included by default)_. A customer identifier, indinull
tagsmap(string)Additional tags (e.g. `{'BusinessUnit': 'XYZ'}`). Neither the tag keys nor the t{}
regex_replace_charsstringTerraform regular expression (regex) string. Characters matching the regex will null
id_length_limitnumberLimit `id` to this many characters (minimum 6). Set to `0` for unlimited length.null
label_value_casestringControls the letter case of ID elements (labels) as included in `id`, set as tagnull
fargate_pod_execution_role_namestringFargate Pod Execution Role name. If not provided, will be derived from the contenull
contextanySingle object for setting entire context at once. See description of individual { "additional_tag_map": {}, "attribu
labels_as_tagsset(string)Set of labels (ID elements) to include as tags in the `tags` output. Default is [ "default" ]
descriptor_formatsanyDescribe additional descriptors to be output in the `descriptors` output map. Ma{}
kubernetes_namespacestringKubernetes namespace for selection""
fargate_pod_execution_role_arnstringARN of the Fargate Pod Execution Role. Required if `fargate_pod_execution_role_enull
namestringID element. Usually the component or solution name, e.g. 'app' or 'jenkins'. Thinull
label_orderlist(string)The order in which the labels (ID elements) appear in the `id`. Defaults to ["nanull
fargate_pod_execution_role_enabledboolSet false to disable the Fargate Pod Execution Role creationtrue
delimiterstringDelimiter to be used between ID elements. Defaults to `-` (hyphen). Set to `""` null
fargate_profile_enabledboolSet false to disable the Fargate Profile creationtrue
iam_role_kubernetes_namespace_delimiterstringDelimiter for the Kubernetes namespace in the IAM Role name"-"
environmentstringID element. Usually used for region e.g. 'uw2', 'us-west-2', OR role 'prod', 'stnull
Outputs (7)
eks_fargate_profile_id — EKS Cluster name and EKS Fargate Profile name separated by a colon
eks_fargate_profile_arn — Amazon Resource Name (ARN) of the EKS Fargate Profile
eks_fargate_profile_status — Status of the EKS Fargate Profile
eks_fargate_profile_role_arn — DEPRECATED (use `eks_fargate_pod_execution_role_arn` instead): ARN of the EKS Fargate Profile IAM ro
eks_fargate_pod_execution_role_arn — ARN of the EKS Fargate Pod Execution role
eks_fargate_profile_role_name — DEPRECATED (use `eks_fargate_pod_execution_role_name` instead): Name of the EKS Fargate Profile IAM
eks_fargate_pod_execution_role_name — Name of the EKS Fargate Pod Execution role
Resources (3)
aws_eks_fargate_profileaws_iam_roleaws_iam_role_policy_attachment
Details
FrameworkTerraform Module
LanguageHCL
Version1.3.1
Cloud AWS
★ Stars45
Forks38
Total downloads403.3k
Inputs30
Outputs7
Resources3
Examples1
LicenseApache-2.0
Namespacecloudposse
Updated