INFRA-3492 | Harinder | Adding environment tags in resources other than rds and rds-aurora

This commit is contained in:
Harinder Singh
2024-06-26 16:00:46 +05:30
parent 12328695b7
commit c7eef72d5a
5 changed files with 463 additions and 271 deletions

File diff suppressed because one or more lines are too long

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 }}