eks-fargate-profile
cloudposse/eks-fargate-profile/aws
Terraform module to provision an EKS Fargate Profile
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
| Name | Type | Description | Default |
|---|---|---|---|
| enabled | bool | Set to false to prevent the module from creating any resources | null |
| namespace | string | ID element. Usually an abbreviation of your organization name, e.g. 'eg' or 'cp' | null |
| tenant | string | ID element _(Rarely used, not included by default)_. A customer identifier, indi | null |
| tags | map(string) | Additional tags (e.g. `{'BusinessUnit': 'XYZ'}`). Neither the tag keys nor the t | {} |
| regex_replace_chars | string | Terraform regular expression (regex) string. Characters matching the regex will | null |
| id_length_limit | number | Limit `id` to this many characters (minimum 6). Set to `0` for unlimited length. | null |
| label_value_case | string | Controls the letter case of ID elements (labels) as included in `id`, set as tag | null |
| fargate_pod_execution_role_name | string | Fargate Pod Execution Role name. If not provided, will be derived from the conte | null |
| context | any | Single object for setting entire context at once. See description of individual | {
"additional_tag_map": {},
"attribu |
| labels_as_tags | set(string) | Set of labels (ID elements) to include as tags in the `tags` output. Default is | [
"default"
] |
| descriptor_formats | any | Describe additional descriptors to be output in the `descriptors` output map. Ma | {} |
| kubernetes_namespace | string | Kubernetes namespace for selection | "" |
| fargate_pod_execution_role_arn | string | ARN of the Fargate Pod Execution Role. Required if `fargate_pod_execution_role_e | null |
| name | string | ID element. Usually the component or solution name, e.g. 'app' or 'jenkins'. Thi | null |
| label_order | list(string) | The order in which the labels (ID elements) appear in the `id`. Defaults to ["na | null |
| fargate_pod_execution_role_enabled | bool | Set false to disable the Fargate Pod Execution Role creation | true |
| delimiter | string | Delimiter to be used between ID elements. Defaults to `-` (hyphen). Set to `""` | null |
| fargate_profile_enabled | bool | Set false to disable the Fargate Profile creation | true |
| iam_role_kubernetes_namespace_delimiter | string | Delimiter for the Kubernetes namespace in the IAM Role name | "-" |
| environment | string | ID element. Usually used for region e.g. 'uw2', 'us-west-2', OR role 'prod', 'st | null |
eks_fargate_profile_id — EKS Cluster name and EKS Fargate Profile name separated by a coloneks_fargate_profile_arn — Amazon Resource Name (ARN) of the EKS Fargate Profileeks_fargate_profile_status — Status of the EKS Fargate Profileeks_fargate_profile_role_arn — DEPRECATED (use `eks_fargate_pod_execution_role_arn` instead): ARN of the EKS Fargate Profile IAM roeks_fargate_pod_execution_role_arn — ARN of the EKS Fargate Pod Execution roleeks_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