Skip to content

Support for Custom Tags in AWS SSM Parameter Store #4833

Description

@wadherv

Currently, the Lambda function responsible for creating AWS SSM Parameter Store entries in the GitHub AWS Runners Terraform module only supports a hardcoded tag:

await putParameter(${githubRunnerConfig.ssmTokenPath}/${instance}, runnerConfig.data.encoded_jit_config, true, {  
   tags: [{ Key: 'InstanceId', Value: instance }],
})

Ref:

  1. https://github.com/github-aws-runners/terraform-aws-github-runner/blob/main/lambdas/functions/control-plane/src/scale-runners/scale-up.ts#L182
  2. https://github.com/github-aws-runners/terraform-aws-github-runner/blob/main/lambdas/functions/control-plane/src/scale-runners/scale-up.ts#L409
  3. https://github.com/github-aws-runners/terraform-aws-github-runner/blob/main/lambdas/functions/control-plane/src/scale-runners/scale-up.ts#L467

This implementation does not allow for additional custom tags to be added via environment variables or configuration. Supporting custom tags would be highly beneficial for organizations that need to:

  • Track cost allocation across different teams or projects.
  • Manage ownership and accountability of resources.
  • Integrate with internal tagging policies for governance and automation.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions