This module creates following resources.
aws_eks_fargate_profile
aws_iam_role
(optional)aws_iam_role_policy
(optional)aws_iam_role_policy_attachment
(optional)aws_iam_instance_profile
(optional)
Name | Version |
---|---|
terraform | >= 1.6 |
aws | >= 5.42 |
Name | Version |
---|---|
aws | 5.50.0 |
Name | Source | Version |
---|---|---|
resource_group | tedilabs/misc/aws//modules/resource-group | ~> 0.10.0 |
role | tedilabs/account/aws//modules/iam-role | ~> 0.30.0 |
Name | Type |
---|---|
aws_eks_fargate_profile.this | resource |
Name | Description | Type | Default | Required |
---|---|---|---|---|
cluster_name | (Required) The name of the Amazon EKS cluster to apply the Fargate profile to. | string |
n/a | yes |
name | (Required) The name of Fargate Profile. | string |
n/a | yes |
subnets | (Required) The IDs of subnets to launch your pods into. At this time, pods running on Fargate are not assigned public IP addresses, so only private subnets (with no direct route to an Internet Gateway) are accepted | list(string) |
n/a | yes |
default_pod_execution_role | (Optional) A configuration for the default pod execution role to use for pods that match the selectors in the Fargate profile. Use pod_execution_role if default_pod_execution_role.enabled is false . default_pod_execution_role as defined below.(Optional) enabled - Whether to create the default pod execution role. Defaults to true .(Optional) name - The name of the default pod execution role. Defaults to eks-${var.cluster_name}-fargate-profile-${var.name} .(Optional) path - The path of the default pod execution role. Defaults to / .(Optional) description - The description of the default pod execution role.(Optional) policies - A list of IAM policy ARNs to attach to the default pod execution role. AmazonEKSFargatePodExecutionRolePolicy is always attached. Defaults to [] .(Optional) inline_policies - A Map of inline IAM policies to attach to the default pod execution role. (name => policy ). |
object({ |
{} |
no |
module_tags_enabled | (Optional) Whether to create AWS Resource Tags for the module informations. | bool |
true |
no |
pod_execution_role | (Optional) The ARN (Amazon Resource Name) of the IAM Role that provides permissions for the EKS Fargate Profile. Only required if default_pod_execution_role.enabled is false . |
string |
null |
no |
resource_group_description | (Optional) The description of Resource Group. | string |
"Managed by Terraform." |
no |
resource_group_enabled | (Optional) Whether to create Resource Group to find and group AWS resources which are created by this module. | bool |
true |
no |
resource_group_name | (Optional) The name of Resource Group. A Resource Group name can have a maximum of 127 characters, including letters, numbers, hyphens, dots, and underscores. The name cannot start with AWS or aws . |
string |
"" |
no |
selectors | (Optional) A list of configurations for selecting Kubernetes Pods to execute with this EKS Fargate Profile. Each block of selectors as defined below.(Required) namespace - Kubernetes namespace for selection.(Optional) labels - Key-value map of Kubernetes labels for selection. |
list(object({ |
[] |
no |
tags | (Optional) A map of tags to add to all resources. | map(string) |
{} |
no |
timeouts | (Optional) How long to wait for the EKS Fargate Profile to be created/updated/deleted. | object({ |
{} |
no |
Name | Description |
---|---|
arn | The ARN of the Fargate Profile. |
cluster_name | The name of the EKS cluster. |
id | The ID of the Fargate Profile. |
name | The name of the Fargate Profile. |
pod_execution_role | The ARN (Amazon Resource Name) of the IAM Role that provides permissions for the EKS Fargate Profile. |
selectors | A list of selectors to match for pods to use this Fargate profile. |
status | The status of the EKS Fargate Profile. |
subnets | The IDs of subnets in which to launch pods. |