Skip to content

Resource tags

RunsOn tags all resources with default tags, and supports tagging resources with custom tags. This is useful to identify resources in your AWS account, and help with cost allocation.

RunsOn will tag all infrastructure resources with the CostAllocationTag key (default key: stack, value: the CloudFormation stack name).

For ephemeral resources (ec2 instances, disks, etc), RunsOn will tag them with the cost allocation tag, and any custom tags that you have defined.

EC2 instances will also be tagged with workflow-related tags (see Default tags below).

RunsOn automatically applies the following default tags to EC2 instances:

Tag KeyDescription
runs-on-workflow-job-startedWhether the workflow job has started
runs-on-workflow-job-nameName of the GitHub Actions workflow job
runs-on-workflow-job-interruptedWhether the job was interrupted
runs-on-workflow-job-idUnique identifier for the workflow job
runs-on-workflow-job-conclusionFinal status of the workflow job
runs-on-workflow-run-idUnique identifier for the workflow run
runs-on-workflow-nameName of the GitHub Actions workflow
runs-on-repo-full-nameFull repository name (owner/repo)
runs-on-image-idUnique identifier for the image spec used
runs-on-runner-idUnique identifier for the runner spec used
runs-on-networking-stackNetworking stack configuration
runs-on-labelsRunner labels assigned to the job
runs-on-orgGitHub organization name
runs-on-versionRunsOn version used
runs-on-envEnvironment configuration
runs-on-role-idIAM role identifier
runs-on-integrations-activeActive integrations status
runs-on-extrasAdditional configuration extras
runs-on-is-ghesWhether running on GitHub Enterprise Server
runs-on-stack-nameCloudFormation stack name
runs-on-ami-nameName of the AMI used

Custom tags can be set in different places:

  1. custom tags defined in the RunnerCustomTags stack parameters.

  2. custom tags defined in a specific custom property of your GitHub repository settings. The custom property must be named runs-on-custom-tags, and the value is a comma-separated list of tag keys and values, e.g. key1=value1,key2=value2.

Custom property
  1. custom tags defined for a runner specification in the runs-on.yml file.

If the same tag name is defined in multiple places, the precedence is as follows:

  1. Stack-level tags
  2. Custom property
  3. runs-on.yml file