Commit 76a572a
fix(runner): handle long prefixes in pool scheduler and IAM resource names (#5139)
The pool module's `aws_scheduler_schedule_group` and `aws_iam_role` for
the scheduler both use `name_prefix`, which has a 38-character limit (64
max name minus 26 for Terraform's random suffix). When the module prefix
is long — for example a multi-runner prefix like
`self-hosted-linux-ubuntu2404-x64-2cpu-8gb` — the combined
`${prefix}-pool` exceeds 38 characters and Terraform fails.
For long prefixes, the name is now truncated with an md5 hash suffix to
stay within limits, matching the existing pattern used elsewhere in the
module. Existing deployments with short prefixes see no resource
changes.
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent b738b86 commit 76a572a
1 file changed
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
1 | 9 | | |
2 | 10 | | |
3 | 11 | | |
| |||
157 | 165 | | |
158 | 166 | | |
159 | 167 | | |
160 | | - | |
| 168 | + | |
161 | 169 | | |
162 | 170 | | |
163 | 171 | | |
| |||
188 | 196 | | |
189 | 197 | | |
190 | 198 | | |
191 | | - | |
| 199 | + | |
192 | 200 | | |
193 | 201 | | |
194 | 202 | | |
| |||
0 commit comments