EKS fargate submodule
Helper submodule to create and manage resources related to aws_eks_fargate_profile.
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.
Example
See example code in examples/fargate.
| 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({ namespace = string labels = map(string) })) |
[] |
no |
| subnets |
List of subnet IDs. Will replace the root module subnets. |
list(string) |
var.subnets |
no |
| timeouts |
A map of timeouts for create/delete operations. |
map(string) |
Provider default behavior |
no |
| tags |
Key-value map of resource tags. Will be merged with root module tags. |
map(string) |
var.tags |
no |
Requirements
Providers
| Name |
Version |
| aws |
>= 3.40.0 |
Modules
No modules.
Resources
Inputs
| Name |
Description |
Type |
Default |
Required |
| cluster_name |
Name of the EKS cluster. |
string |
"" |
no |
| 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 |
| 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 |
| 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