File tree 3 files changed +29
-0
lines changed
3 files changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -99,6 +99,12 @@ module "eks" {
99
99
tags = {
100
100
Owner = " test"
101
101
}
102
+
103
+ # Set custom timeout for create/delete operation on fargate profiles
104
+ timeouts = {
105
+ create = " 20m"
106
+ delete = " 20m"
107
+ }
102
108
}
103
109
}
104
110
Original file line number Diff line number Diff line change @@ -33,6 +33,12 @@ module "eks" {
33
33
tags = {
34
34
Owner = " default"
35
35
}
36
+
37
+ # Set custom timeout for create/delete operation on fargate profiles
38
+ timeouts = {
39
+ create = " 20m"
40
+ delete = " 20m"
41
+ }
36
42
}
37
43
38
44
secondary = {
@@ -54,6 +60,12 @@ module "eks" {
54
60
tags = {
55
61
Owner = " secondary"
56
62
}
63
+
64
+ # Set custom timeout for create/delete operation on fargate profiles
65
+ timeouts = {
66
+ create = " 20m"
67
+ delete = " 20m"
68
+ }
57
69
}
58
70
}
59
71
@@ -116,6 +128,12 @@ module "fargate_profile_existing_cluster" {
116
128
tags = {
117
129
Owner = " profile2"
118
130
}
131
+
132
+ # Set custom timeout for create/delete operation on fargate profiles
133
+ timeouts = {
134
+ create = " 20m"
135
+ delete = " 20m"
136
+ }
119
137
}
120
138
}
121
139
Original file line number Diff line number Diff line change @@ -63,5 +63,10 @@ resource "aws_eks_fargate_profile" "this" {
63
63
}
64
64
}
65
65
66
+ timeouts {
67
+ create = contains (keys (each. value ), " timeouts" ) ? each. value [" timeouts" ][" create" ] : null
68
+ delete = contains (keys (each. value ), " timeouts" ) ? each. value [" timeouts" ][" delete" ] : null
69
+ }
70
+
66
71
tags = merge (var. tags , lookup (each. value , " tags" , {}))
67
72
}
You can’t perform that action at this time.
0 commit comments