Commit 174293c
fix(runners): correct regex pattern for extracting AMI ID from SSM parameter ARN (#4981)
This PR creates a small change to the regex group that ensures the
correct ami_id_ssm_parameter_arn value is passed in its fullest to the
env of the scale-up lambda. At the moment, this is missing the leading
'/' and thus causes ```Error processing batch (size: 3): Failed to
lookup runner AMI ID from SSM parameter:
github-action-runners/staging-multi/<redacted>-ubuntu-x64/runners/config/ami_id,\n
GetParameterError: User:
arn:aws:sts::<redacted>:assumed-role/staging-multi-<redacted>-ubu-x64-med-scale-up-lambda-<redacted>/staging-multi-<redacted>-ubu-x64-med-scale-up
is not authorized to perform: ssm:GetParameter on resource:
arn:aws:ssm:<redacted>:<redacted>:* because no identity-based policy
allows the ssm:GetParameter action, ignoring batch",```.
closes #4959
Co-authored-by: Niek Palm <[email protected]>1 parent 4af194d commit 174293c
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
0 commit comments