Skip to content
This repository was archived by the owner on Jan 16, 2025. It is now read-only.

Commit 8bb6272

Browse files
authored
fix: use name instead of name prefix to avoid too long names (#4079)
## Problme In #4063 PR the EventBridge Schedule is introduces. For schedule groups a name prefix is used. But since the name for the name prefix is already unieque the name can be used instead of prefix to avoid too long prefix names (30 chars plus).
1 parent a2fe8af commit 8bb6272

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: modules/runners/pool/main.tf

+2-2
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,8 @@ resource "aws_iam_role" "scheduler" {
199199
resource "aws_scheduler_schedule" "pool" {
200200
for_each = { for i, v in var.config.pool : i => v }
201201

202-
name_prefix = "${var.config.prefix}-pool-${each.key}-rule"
203-
group_name = aws_scheduler_schedule_group.pool.name
202+
name = "${var.config.prefix}-pool-${each.key}-rule"
203+
group_name = aws_scheduler_schedule_group.pool.name
204204

205205
flexible_time_window {
206206
mode = "OFF"

0 commit comments

Comments
 (0)