mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-01-15 16:23:58 +01:00
feat: Add ability to define custom timeout for fargate profiles (#1614)
This commit is contained in:
@@ -114,6 +114,11 @@ module "eks" {
|
||||
tags = {
|
||||
Owner = "test"
|
||||
}
|
||||
|
||||
timeouts = {
|
||||
create = "20m"
|
||||
delete = "20m"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -68,6 +68,11 @@ module "eks" {
|
||||
tags = {
|
||||
Owner = "default"
|
||||
}
|
||||
|
||||
timeouts = {
|
||||
create = "20m"
|
||||
delete = "20m"
|
||||
}
|
||||
}
|
||||
|
||||
secondary = {
|
||||
@@ -154,6 +159,10 @@ module "fargate_profile_existing_cluster" {
|
||||
Owner = "profile2"
|
||||
submodule = "true"
|
||||
}
|
||||
|
||||
timeouts = {
|
||||
delete = "20m"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@ See example code in `examples/fargate`.
|
||||
| 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. | <pre>list(map({<br>namespace = string<br>labels = map(string)<br>}))</pre>| `[]` | 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 |
|
||||
|
||||
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
|
||||
|
||||
@@ -63,5 +63,10 @@ resource "aws_eks_fargate_profile" "this" {
|
||||
}
|
||||
}
|
||||
|
||||
timeouts {
|
||||
create = try(each.value["timeouts"].create, null)
|
||||
delete = try(each.value["timeouts"].delete, null)
|
||||
}
|
||||
|
||||
tags = merge(var.tags, lookup(each.value, "tags", {}))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user