INFRA-3492 | Harinder | Adding environment tags in resources other than rds and rds-aurora
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -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 }} )
|
||||
}
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
@@ -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 = [
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user