Skip to content

Commit 7716398

Browse files
committed
feat(runners): rename ec2_custom_allowed_tags variable to ec2_custom_allowed_tags_creation for clarity
1 parent 4dc698a commit 7716398

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

modules/runners/policies-runner.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ resource "aws_iam_role_policy" "create_tag" {
6161
name = "runner-create-tags"
6262
role = aws_iam_role.runner.name
6363
policy = templatefile("${path.module}/policies/instance-create-tags-policy.json", {
64-
ec2_custom_allowed_tags = var.ec2_custom_allowed_tags
64+
ec2_custom_allowed_tags = var.ec2_custom_allowed_tags_creation
6565
})
6666
}
6767

modules/runners/policies/instance-create-tags-policy.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"Action": "ec2:CreateTags",
66
"Condition": {
77
"ForAllValues:StringEquals": {
8-
"aws:TagKeys": ${jsonencode(concat(["ghr:github_runner_id"], ec2_custom_allowed_tags))}
8+
"aws:TagKeys": ${jsonencode(concat(["ghr:github_runner_id"], ec2_custom_allowed_tags_creation))}
99
},
1010
"StringEquals": {
1111
"aws:ARN": "$${ec2:SourceInstanceARN}"

modules/runners/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,7 @@ variable "user_agent" {
762762
default = null
763763
}
764764

765-
variable "ec2_custom_allowed_tags" {
765+
variable "ec2_custom_allowed_tags_creation" {
766766
description = "Allows the EC2 instance to create tags listed here."
767767
type = list(string)
768768
default = []

0 commit comments

Comments
 (0)