File tree 2 files changed +11
-1
lines changed
2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -261,7 +261,7 @@ locals {
261
261
resource "aws_cloudwatch_event_rule" "this" {
262
262
for_each = { for k , v in local . events : k => v if local . enable_spot_termination }
263
263
264
- name_prefix = " Karpenter ${ each . value . name } -"
264
+ name_prefix = " ${ var . rule_name_prefix } ${ each . value . name } -"
265
265
description = each. value . description
266
266
event_pattern = jsonencode (each. value . event_pattern )
267
267
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 = " Karpenter"
236
+ }
You can’t perform that action at this time.
0 commit comments