Skip to content

Support for Custom Tags in AWS SSM Parameter Store #4833

@wadherv

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.

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