Skip to content

Commit

Permalink
chore: updated default tags
Browse files Browse the repository at this point in the history
  • Loading branch information
ulises-jeremias committed Jul 13, 2024
1 parent 372c6fc commit 8eb436b
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 30 deletions.
8 changes: 1 addition & 7 deletions live/common-infra/context.tf
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,6 @@ variable "tags" {
default = {}
}

locals {
tf_tags = {
ManagedBy = "terraform",
}
}

// Keep labels, tags consistent
module "label" {
source = "cloudposse/label/null"
Expand All @@ -47,5 +41,5 @@ module "label" {

delimiter = "-"
label_order = ["namespace", "environment", "stage", "name", "attributes"]
tags = merge(var.tags, local.tf_tags)
tags = var.tags
}
9 changes: 6 additions & 3 deletions live/common-infra/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@ provider "aws" {
region = var.region

default_tags {
tags = {
ManagedBy = "terraform"
}
tags = merge(module.label.tags, {
ManagedBy = "terraform"
Owner = "Software-Platforms"
Repository = "https://github.com/Ionna-ev/terraform-infra"
RepositoryPath = "live/${path.module}"
})
}
}
8 changes: 1 addition & 7 deletions live/core-networking/context.tf
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,6 @@ variable "tags" {
default = {}
}

locals {
tf_tags = {
ManagedBy = "terraform",
}
}

// Keep labels, tags consistent
module "label" {
source = "cloudposse/label/null"
Expand All @@ -47,5 +41,5 @@ module "label" {

delimiter = "-"
label_order = ["namespace", "environment", "stage", "name", "attributes"]
tags = merge(var.tags, local.tf_tags)
tags = var.tags
}
9 changes: 6 additions & 3 deletions live/core-networking/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@ provider "aws" {
region = var.region

default_tags {
tags = {
ManagedBy = "terraform"
}
tags = merge(module.label.tags, {
ManagedBy = "terraform"
Owner = "Software-Platforms"
Repository = "https://github.com/Ionna-ev/terraform-infra"
RepositoryPath = "live/${path.module}"
})
}
}
8 changes: 1 addition & 7 deletions live/terraform-backend/context.tf
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,6 @@ variable "tags" {
default = {}
}

locals {
tf_tags = {
ManagedBy = "terraform",
}
}

// Keep labels, tags consistent
module "label" {
source = "cloudposse/label/null"
Expand All @@ -47,5 +41,5 @@ module "label" {

delimiter = "-"
label_order = ["namespace", "environment", "stage", "name", "attributes"]
tags = merge(var.tags, local.tf_tags)
tags = var.tags
}
9 changes: 6 additions & 3 deletions live/terraform-backend/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@ provider "aws" {
region = var.region

default_tags {
tags = {
ManagedBy = "terraform"
}
tags = merge(module.label.tags, {
ManagedBy = "terraform"
Owner = "Software-Platforms"
Repository = "https://github.com/Ionna-ev/terraform-infra"
RepositoryPath = "live/${path.module}"
})
}
}

0 comments on commit 8eb436b

Please sign in to comment.