Skip to content

Commit

Permalink
Move metadata_tags var to start_runner template
Browse files Browse the repository at this point in the history
  • Loading branch information
MGSousa committed Jan 5, 2023
1 parent 3f00f23 commit 0e1c5b0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions modules/runners/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,12 @@ resource "aws_launch_template" "runner" {
S3_LOCATION_RUNNER_DISTRIBUTION = local.s3_location_runner_distribution
RUNNER_ARCHITECTURE = var.runner_architecture
})
post_install = var.userdata_post_install
start_runner = templatefile(local.userdata_start_runner[var.runner_os], {})
post_install = var.userdata_post_install
start_runner = templatefile(local.userdata_start_runner[var.runner_os], {
metadata_tags = var.metadata_options != null ? var.metadata_options.instance_metadata_tags : "enabled"
})
ghes_url = var.ghes_url
ghes_ssl_verify = var.ghes_ssl_verify
metadata_tags = var.metadata_options != null ? var.metadata_options.instance_metadata_tags : "enabled"

## retain these for backwards compatibility
environment = var.prefix
Expand Down

0 comments on commit 0e1c5b0

Please sign in to comment.