diff --git a/examples/complete/main.tf b/examples/complete/main.tf index c0e2c8b6795..cde5605680d 100644 --- a/examples/complete/main.tf +++ b/examples/complete/main.tf @@ -99,6 +99,12 @@ module "eks" { tags = { Owner = "test" } + + # Set custom timeout for create/delete operation on fargate profiles + timeouts = { + create = "20m" + delete = "20m" + } } } diff --git a/examples/fargate/main.tf b/examples/fargate/main.tf index 09018434457..92ec8c0408c 100644 --- a/examples/fargate/main.tf +++ b/examples/fargate/main.tf @@ -33,6 +33,12 @@ module "eks" { tags = { Owner = "default" } + + # Set custom timeout for create/delete operation on fargate profiles + timeouts = { + create = "20m" + delete = "20m" + } } secondary = { @@ -54,6 +60,12 @@ module "eks" { tags = { Owner = "secondary" } + + # Set custom timeout for create/delete operation on fargate profiles + timeouts = { + create = "20m" + delete = "20m" + } } } @@ -116,6 +128,12 @@ module "fargate_profile_existing_cluster" { tags = { Owner = "profile2" } + + # Set custom timeout for create/delete operation on fargate profiles + timeouts = { + create = "20m" + delete = "20m" + } } } diff --git a/modules/fargate/main.tf b/modules/fargate/main.tf index 74e3c9b2e2b..822cf13c433 100644 --- a/modules/fargate/main.tf +++ b/modules/fargate/main.tf @@ -63,5 +63,10 @@ resource "aws_eks_fargate_profile" "this" { } } + timeouts { + create = lookup(each.value["timeouts"], "create", null) + delete = lookup(each.value["timeouts"], "delete", null) + } + tags = merge(var.tags, lookup(each.value, "tags", {})) }