Skip to content

Commit

Permalink
longest event name is InstanceStateChange
Browse files Browse the repository at this point in the history
  • Loading branch information
morga471 committed Apr 1, 2025
1 parent 591720c commit c37722a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ locals {
# Leave enough space for suffixes like "SpotInterrupt" and unique IDs generated by AWS
# EventBridge has a max length of 64 chars
rule_name_raw = format("%v%v", local.prefixes["event-rule"], var.cluster_name)
max_rule_name_length = 22
max_rule_name_length = 8
rule_name_prefix = length(local.rule_name_raw) > local.max_rule_name_length ? substr(local.rule_name_raw, 0, local.max_rule_name_length) : local.rule_name_raw
queue_name = format("%v%v", local.prefixes["eks-queue"], var.cluster_name)
}
Expand Down

0 comments on commit c37722a

Please sign in to comment.