Merge pull request #211 from navi-infra/INFRA-3492-TAGS

INFRA-3492 | Harinder | Adding environment tags in resources other than rds and rds-aurora
This commit is contained in:
Harinder Singh
2024-06-27 09:45:17 +00:00
committed by GitHub
18 changed files with 488 additions and 296 deletions

File diff suppressed because one or more lines are too long

View File

@@ -1,2 +1,2 @@
app_name: infra-provisioner-v2
version: v2.48.7
version: v2.48.8

View File

@@ -30,10 +30,10 @@ module "iam-role" {
role_name = "{{ .Name }}-{{ .NameSuffix }}"
{{- end }}
infra_vertical = {{ .InfraVertical | quote }}
tags = {
tags = merge({
Team = {{ .Team.Name | quote }}
Owner = {{ .Team.Owner | quote }}
Name = "{{ .Name }}"
Environment = {{ .ExtraResources.Environment | quote }}
}
}, {{ .ExtraResources.GlobalTags | mustToJson }} )
}

View File

@@ -19,7 +19,7 @@ module "docdb" {
master_password = {{ .ExtraResources.DocDb.MasterPassword | quote }}
cluster_size = {{ .ExtraResources.DocDb.ClusterSize }}
tags = {
tags = merge({
Team = {{ .Team.Name | quote }}
Owner = {{ .Team.Owner | quote }}
Product = {{ .Team.Product | quote }}
@@ -37,7 +37,7 @@ module "docdb" {
{{- end }}
{{- end }}
{{- end }}
}
}, {{ .ExtraResources.GlobalTags | mustToJson }})
instance_class = {{ .ExtraResources.DocDb.AwsInstanceClass | quote }}
apply_immediately = {{ .ExtraResources.DocDb.ApplyImmediately }}

View File

@@ -13,7 +13,7 @@ module "dynamodb" {
source = "git@github.com:navi-infra/dynamo-db-module.git"
environment = {{ .ExtraResources.Environment | quote }}
infra_vertical = {{ .InfraVertical | quote }}
tags = {
tags = merge({
Team = {{ .Team.Name | quote }}
Owner = {{ .Team.Owner | quote }}
Product = {{ .Team.Product | quote }}
@@ -26,7 +26,7 @@ module "dynamodb" {
DataSensitivity = "PII_SPI"
{{- end }}
{{- end }}
}
}, {{ .ExtraResources.GlobalTags | mustToJson }})
{{- if.ExtraResources.Dynamodb.Tables}}
tables = [

View File

@@ -16,13 +16,13 @@ module "elastic_cache" {
infra_vertical = {{ .InfraVertical | quote }}
team = {{ .Team.Name | quote }}
tags = {
tags = merge({
Team = {{ .Team.Name | quote }}
Owner = {{ .Team.Owner | quote }}
Product = {{ .Team.Product | quote }}
Environment = {{ .ExtraResources.Environment | quote }}
Name = {{ .Name | quote}}
}
}, {{ .ExtraResources.GlobalTags | mustToJson }} )
node_type = {{ .ExtraResources.ElasticCache.AwsInstanceClass | quote }}
apply_immediately = {{ .ExtraResources.ElasticCache.ApplyImmediately }}

View File

@@ -17,10 +17,10 @@ module "iam-role" {
cluster_name = "nonprod.np.navi-tech.in"
role_name = "foo-navi-service"
infra_vertical = "lending"
tags = {
tags = merge({
Team = "Infra"
Owner = "lending"
Name = "foo"
Environment = "dev"
}
}, null )
}

View File

@@ -19,14 +19,14 @@ module "docdb" {
master_password = "foo_service_pass"
cluster_size = 1
tags = {
tags = merge({
Team = "Infra"
Owner = "lending"
Product = "lending"
Environment = "dev"
Name = "foo"
DataSensitivity = "PII_SPI"
}
}, null)
instance_class = "db.t4g.medium"
apply_immediately = false

View File

@@ -13,14 +13,14 @@ module "dynamodb" {
source = "git@github.com:navi-infra/dynamo-db-module.git"
environment = "dev"
infra_vertical = "lending"
tags = {
tags = merge({
Team = "Infra"
Owner = "lending"
Product = "lending"
Environment = "dev"
Name = "foo"
DataSensitivity = "PII_SPI"
}
}, null)
tables = [
{
table_name = "foo_dev_abc"

View File

@@ -16,13 +16,13 @@ module "elastic_cache" {
infra_vertical = "lending"
team = "Infra"
tags = {
tags = merge({
Team = "Infra"
Owner = "lending"
Product = "lending"
Environment = "dev"
Name = "foo"
}
}, null )
node_type = "cache.t3.small"
apply_immediately = false

View File

@@ -17,10 +17,10 @@ module "iam-role" {
cluster_name = "aps1.np.navi-gi.in"
role_name = "foo-navi-service"
infra_vertical = "insurance"
tags = {
tags = merge({
Team = "Infra"
Owner = "gi"
Name = "foo"
Environment = "dev"
}
}, null )
}

View File

@@ -19,14 +19,14 @@ module "docdb" {
master_password = "foo_service_pass"
cluster_size = 1
tags = {
tags = merge({
Team = "Infra"
Owner = "gi"
Product = "gi"
Environment = "dev"
Name = "foo"
DataSensitivity = "PII_SPI"
}
}, null)
instance_class = "db.t4g.medium"
apply_immediately = false

View File

@@ -13,14 +13,14 @@ module "dynamodb" {
source = "git@github.com:navi-infra/dynamo-db-module.git"
environment = "dev"
infra_vertical = "insurance"
tags = {
tags = merge({
Team = "Infra"
Owner = "gi"
Product = "gi"
Environment = "dev"
Name = "foo"
DataSensitivity = "PII_SPI"
}
}, null)
tables = [
{
table_name = "foo_dev_abc"

View File

@@ -16,13 +16,13 @@ module "elastic_cache" {
infra_vertical = "insurance"
team = "Infra"
tags = {
tags = merge({
Team = "Infra"
Owner = "gi"
Product = "gi"
Environment = "dev"
Name = "foo"
}
}, null )
node_type = "cache.t3.small"
apply_immediately = false

View File

@@ -17,10 +17,10 @@ module "iam-role" {
cluster_name = "aps1.np.navi-gi.in"
role_name = "foo-navi-service"
infra_vertical = "insurance"
tags = {
tags = merge({
Team = "Infra"
Owner = "gi"
Name = "foo"
Environment = "dev"
}
}, null )
}

View File

@@ -19,14 +19,14 @@ module "docdb" {
master_password = "foo_service_pass"
cluster_size = 1
tags = {
tags = merge({
Team = "Infra"
Owner = "gi"
Product = "gi"
Environment = "dev"
Name = "foo"
DataSensitivity = "PII_SPI"
}
}, null)
instance_class = "db.t4g.medium"
apply_immediately = false

View File

@@ -13,14 +13,14 @@ module "dynamodb" {
source = "git@github.com:navi-infra/dynamo-db-module.git"
environment = "dev"
infra_vertical = "insurance"
tags = {
tags = merge({
Team = "Infra"
Owner = "gi"
Product = "gi"
Environment = "dev"
Name = "foo"
DataSensitivity = "PII_SPI"
}
}, null)
tables = [
{
table_name = "foo_dev_abc"

View File

@@ -16,13 +16,13 @@ module "elastic_cache" {
infra_vertical = "insurance"
team = "Infra"
tags = {
tags = merge({
Team = "Infra"
Owner = "gi"
Product = "gi"
Environment = "dev"
Name = "foo"
}
}, null )
node_type = "cache.t3.small"
apply_immediately = false