Skip to content

Commit 72d3ba8

Browse files
author
Damian Rekosz
committed
chore: remove s3_tags at the runner config level
1 parent cc625f5 commit 72d3ba8

File tree

3 files changed

+1
-12
lines changed

3 files changed

+1
-12
lines changed

modules/multi-runner/main.tf

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,6 @@ locals {
1616
tmp_distinct_list_unique_os_and_arch = distinct([for i, config in local.runner_config : { "os_type" : config.runner_config.runner_os, "architecture" : config.runner_config.runner_architecture } if config.runner_config.enable_runner_binaries_syncer])
1717
unique_os_and_arch = { for i, v in local.tmp_distinct_list_unique_os_and_arch : "${v.os_type}_${v.architecture}" => v }
1818

19-
s3_tags = {
20-
for os_arch, tags_lists in {
21-
for i, config in local.runner_config :
22-
"${config.runner_config.runner_os}_${config.runner_config.runner_architecture}" => [config.runner_config.runner_binaries_s3_tags]...
23-
if config.runner_config.enable_runner_binaries_syncer
24-
} :
25-
os_arch => merge(var.runner_binaries_s3_tags, merge(flatten(tags_lists)...))
26-
}
27-
2819
ssm_root_path = "/${var.ssm_paths.root}/${var.prefix}"
2920
}
3021

modules/multi-runner/runner-binaries.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ module "runner_binaries" {
2525
state_event_rule_binaries_syncer = var.state_event_rule_binaries_syncer
2626

2727
server_side_encryption_configuration = var.runner_binaries_s3_sse_configuration
28-
s3_tags = local.s3_tags[each.key]
28+
s3_tags = var.runner_binaries_s3_tags
2929
s3_versioning = var.runner_binaries_s3_versioning
3030

3131
role_path = var.role_path

modules/multi-runner/variables.tf

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ variable "multi_runner_config" {
114114
cloudwatch_config = optional(string, null)
115115
userdata_pre_install = optional(string, "")
116116
userdata_post_install = optional(string, "")
117-
runner_binaries_s3_tags = optional(map(string), {})
118117
runner_hook_job_started = optional(string, "")
119118
runner_hook_job_completed = optional(string, "")
120119
runner_ec2_tags = optional(map(string), {})
@@ -223,7 +222,6 @@ variable "multi_runner_config" {
223222
cloudwatch_config: "(optional) Replaces the module default cloudwatch log config. See https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Agent-Configuration-File-Details.html for details."
224223
userdata_pre_install: "Script to be ran before the GitHub Actions runner is installed on the EC2 instances"
225224
userdata_post_install: "Script to be ran after the GitHub Actions runner is installed on the EC2 instances"
226-
runner_binaries_s3_tags: "Map of tags that will be added to the S3 bucket used by the runner binaries syncer for this runner configuration. Note these are additional tags to the default tags."
227225
runner_hook_job_started: "Script to be ran in the runner environment at the beginning of every job"
228226
runner_hook_job_completed: "Script to be ran in the runner environment at the end of every job"
229227
runner_ec2_tags: "Map of tags that will be added to the launch template instance tag specifications."

0 commit comments

Comments
 (0)