File tree 2 files changed +13
-1
lines changed
2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -256,12 +256,14 @@ locals {
256
256
}
257
257
}
258
258
}
259
+
260
+ rule_name_prefix = coalesce (var. rule_name_prefix , " Karpenter" )
259
261
}
260
262
261
263
resource "aws_cloudwatch_event_rule" "this" {
262
264
for_each = { for k , v in local . events : k => v if local . enable_spot_termination }
263
265
264
- name_prefix = " Karpenter ${ each . value . name } -"
266
+ name_prefix = " ${ local . rule_name_prefix } ${ each . value . name } -"
265
267
description = each. value . description
266
268
event_pattern = jsonencode (each. value . event_pattern )
267
269
Original file line number Diff line number Diff line change @@ -224,3 +224,13 @@ variable "create_instance_profile" {
224
224
type = bool
225
225
default = true
226
226
}
227
+
228
+ # ###############################################################################
229
+ # Event Bridge Rules
230
+ # ###############################################################################
231
+
232
+ variable "rule_name_prefix" {
233
+ description = " Prefix used for all event bridge rules"
234
+ type = string
235
+ default = null
236
+ }
You can’t perform that action at this time.
0 commit comments