Skip to content

Commit

Permalink
terraform, aws: rename tags variable to default_tags
Browse files Browse the repository at this point in the history
  • Loading branch information
consideRatio committed Sep 6, 2024
1 parent db37be8 commit e2da4fb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion terraform/aws/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ provider "aws" {
# default_tags ref: https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-configuration-block
default_tags {
tags = {
for k, v in var.tags : k => replace(v, "{var_cluster_name}", var.cluster_name)
for k, v in var.default_tags : k => replace(v, "{var_cluster_name}", var.cluster_name)
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion terraform/aws/projects/earthscope.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ region = "us-east-2"
cluster_name = "earthscope"
cluster_nodes_location = "us-east-2a"

tags = {
default_tags = {
"2i2c.org/cluster-name" : "{var_cluster_name}",
"ManagedBy" : "2i2c",
# Requested by the community in https://2i2c.freshdesk.com/a/tickets/1460
Expand Down
2 changes: 1 addition & 1 deletion terraform/aws/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ variable "db_user_password_special_chars" {
EOT
}

variable "tags" {
variable "default_tags" {
type = map(string)
default = {
"2i2c.org/cluster-name" = "{var_cluster_name}"
Expand Down

0 comments on commit e2da4fb

Please sign in to comment.