mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-03-23 01:49:06 +01:00
feat: Allow to pass prefix for rule names (#2437)
This commit is contained in:
committed by
GitHub
parent
a8e0de0b3f
commit
68fe60f1c4
@@ -261,7 +261,7 @@ locals {
|
||||
resource "aws_cloudwatch_event_rule" "this" {
|
||||
for_each = { for k, v in local.events : k => v if local.enable_spot_termination }
|
||||
|
||||
name_prefix = "Karpenter${each.value.name}-"
|
||||
name_prefix = "${var.rule_name_prefix}${each.value.name}-"
|
||||
description = each.value.description
|
||||
event_pattern = jsonencode(each.value.event_pattern)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user