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 @@ -114,6 +114,12 @@ module "eks" {
114
114
tags = {
115
115
Owner = " test"
116
116
}
117
+
118
+ # Set custom timeout for create/delete operation on fargate profiles
119
+ timeouts = {
120
+ create = " 20m"
121
+ delete = " 20m"
122
+ }
117
123
}
118
124
}
119
125
Original file line number Diff line number Diff line change @@ -68,6 +68,12 @@ module "eks" {
68
68
tags = {
69
69
Owner = " default"
70
70
}
71
+
72
+ # Set custom timeout for create/delete operation on fargate profiles
73
+ timeouts = {
74
+ create = " 20m"
75
+ delete = " 20m"
76
+ }
71
77
}
72
78
73
79
secondary = {
@@ -89,6 +95,12 @@ module "eks" {
89
95
tags = {
90
96
Owner = " secondary"
91
97
}
98
+
99
+ # Set custom timeout for create/delete operation on fargate profiles
100
+ timeouts = {
101
+ create = " 20m"
102
+ delete = " 20m"
103
+ }
92
104
}
93
105
}
94
106
@@ -154,6 +166,12 @@ module "fargate_profile_existing_cluster" {
154
166
Owner = " profile2"
155
167
submodule = " true"
156
168
}
169
+
170
+ # Set custom timeout for create/delete operation on fargate profiles
171
+ timeouts = {
172
+ create = " 20m"
173
+ delete = " 20m"
174
+ }
157
175
}
158
176
}
159
177
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