Skip to content

EC2 ghr:created_by tag is getting set to "pool-lambda" even though there is no pool set for the runner type #5053

Description

@stuartp44

We have been noticing that some of the EC2 instances, the control plane spawns, are getting to the ghr:created_by tag set to random values of "scale-up-lambda" and "pool-lambda" even though they are being created by only the "scale-up-lambda" as a pool does not exist for the runner type we have noticed the behaviour in.

Looking at the code,

{ Key: 'ghr:created_by', Value: runnerParameters.numberOfRunners === 1 ? 'scale-up-lambda' : 'pool-lambda' },

Looks like the issue is that the default is set to "pool-lambda": currently, if x.numberofrunners is 1, it's the "scale-up" lambda; otherwise, it sets the default to "pool-lambda". Since https://github.com/github-aws-runners/terraform-aws-github-runner/releases/tag/v7.0.0, we now process in batches, which means we are almost always doing actions in multiple rather than single (scale-up) and multiple (pool).

We really need to allign this with the https://github.com/github-aws-runners/terraform-aws-github-runner/releases/tag/v7.0.0 change

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions