Skip to content

Extraction of parameter name from id_ssm_parameter_arn variable. #4959

Description

@michw

Hello Team,

First, thanks for all Your hard work.

I believe extraction of parameter name introduced by 8afc75c is too aggressive.

Based on AWS docs, You can have SSM parameters organized into hierarchies.

If Your id_ssm_parameter_arn variable starts with / (i.e. /tenant/project/region/github-runner/runner-ami), leading / is lost and scale-up lambda errors out with

...
"module":"lambda.ts","error":
{"name":"Error","location":"file:///var/task/index.js:125007","message":"Failed to lookup runner AMI ID from SSM parameter: tenant/project/region/github-runner/runner-ami
...

Activity

  1. Brend-Smits commented on Dec 18, 2025

    @Brend-Smits
    Contributor

    We were seeing the same issue in our environment.

  2. added
    bug
    on Dec 18, 2025
  3. joemiller commented on Dec 20, 2025

    @joemiller

    ran into this too, i believe:

    ERROR [runners-4cpu-16gb-arm64-scale-up]: Error processing batch (size: 1): Failed to lookup runner AMI ID from SSM parameter: github-action-runners/packer/ubuntu-jammy-arm64/ami-id, GetParameterError: User: arn:aws:sts::1111111111:assumed-role/runners-4cpu-16gb-arm64-scale-up-lambda-13531bee/runners-4cpu-16gb-arm64-scale-up is not authorized to perform: ssm:GetParameter on resource: arn:aws:ssm:us-east-2:1111111111:* because no identity-based policy allows the ssm:GetParameter action, ignoring batch

  4. added a commit that references this issue on Jan 8, 2026
    174293c
  5. added a commit that references this issue on Jan 13, 2026
  6. added 2 commits that reference this issue on Apr 7, 2026
    7ac762d
    1e8f899
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions