mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-01-15 08:14:12 +01:00
BREAKING CHANGES: We now decided to remove `random_pet` resources in Managed Node Groups (MNG). Those were used to recreate MNG if something change and also simulate the newly added argument `node_group_name_prefix`. But they were causing a lot of troubles. To upgrade the module without recreating your MNG, you will need to explicitly reuse their previous name and set them in your MNG `name` argument. Please see [upgrade docs](https://github.com/terraform-aws-modules/terraform-aws-eks/blob/master/docs/upgrades.md#upgrade-module-to-v1700-for-managed-node-groups) for more details.
eks fargate submodule
Helper submodule to create and manage resources related to aws_eks_fargate_profile.
Assumptions
- Designed for use by the parent module and not directly by end users
fargate_profile keys
fargate_profile is a map of maps. Key of first level will be used as unique value for for_each resources and in the aws_eks_fargate_profile name. Inner map can take the below values.
| Name | Description | Type | Default | Required |
|---|---|---|---|---|
| name | Fargate profile name | string |
Auto generated in the following format [cluster_name]-fargate-[fargate_profile_map_key] |
no |
| selectors | A list of Kubernetes selectors. See examples/fargate/main.tf for example format. | list(map({ |
[] |
no |
| subnets | List of subnet IDs. Will replace the root module subnets. | list(string) |
var.subnets |
no |
| tags | Key-value map of resource tags. Will be merged with root module tags. | map(string) |
var.tags |
no |
Requirements
| Name | Version |
|---|---|
| terraform | >= 0.13.1 |
| aws | >= 3.40.0 |
Providers
| Name | Version |
|---|---|
| aws | >= 3.40.0 |
Modules
No modules.
Resources
| Name | Type |
|---|---|
| aws_eks_fargate_profile.this | resource |
| aws_iam_role.eks_fargate_pod | resource |
| aws_iam_role_policy_attachment.eks_fargate_pod | resource |
| aws_iam_policy_document.eks_fargate_pod_assume_role | data source |
| aws_iam_role.custom_fargate_iam_role | data source |
Inputs
| Name | Description | Type | Default | Required |
|---|---|---|---|---|
| cluster_name | Name of the EKS cluster. | string |
n/a | yes |
| create_eks | Controls if EKS resources should be created (it affects almost all resources) | bool |
true |
no |
| create_fargate_pod_execution_role | Controls if the the IAM Role that provides permissions for the EKS Fargate Profile should be created. | bool |
true |
no |
| eks_depends_on | List of references to other resources this submodule depends on. | any |
null |
no |
| fargate_pod_execution_role_name | The IAM Role that provides permissions for the EKS Fargate Profile. | string |
null |
no |
| fargate_profiles | Fargate profiles to create. See fargate_profile keys section in README.md for more details |
any |
{} |
no |
| iam_path | IAM roles will be created on this path. | string |
"/" |
no |
| iam_policy_arn_prefix | IAM policy prefix with the correct AWS partition. | string |
n/a | yes |
| permissions_boundary | If provided, all IAM roles will be created with this permissions boundary attached. | string |
null |
no |
| subnets | A list of subnets for the EKS Fargate profiles. | list(string) |
[] |
no |
| tags | A map of tags to add to all resources. | map(string) |
{} |
no |
Outputs
| Name | Description |
|---|---|
| aws_auth_roles | Roles for use in aws-auth ConfigMap |
| fargate_profile_arns | Amazon Resource Name (ARN) of the EKS Fargate Profiles. |
| fargate_profile_ids | EKS Cluster name and EKS Fargate Profile names separated by a colon (:). |
| iam_role_arn | IAM role ARN for EKS Fargate pods |
| iam_role_name | IAM role name for EKS Fargate pods |