forked from oci-landing-zones/oracle-enterprise-landingzone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtagging.tf
40 lines (37 loc) · 1.32 KB
/
tagging.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
locals {
architecture_tag = {
tag_namespace_description = "ArchitectureCenterTagNamespace"
tag_namespace_name = "ArchitectureCenter\\oci-enterprise-scale-baseline-landing-zone-v2-${random_id.tag.hex}"
is_namespace_retired = false
tag_map = {
architecture_tag = {
description = "ArchitectureCenterTag"
name = "release"
validator_type = "ENUM"
validator_values = ["release", "1.0.0", "2.0.0"]
is_cost_tracking = false
is_retired = false
}
}
tag_default_map = {
architecture_tag = {
compartment_id = module.home_compartment.compartment_id
tag_definition_name = "architecture_tag"
value = "2.0.0"
is_required = false
}
}
}
}
resource "random_id" "tag" {
byte_length = 2
}
module "architecture_tag" {
source = "../../modules/tag"
compartment_id = var.tenancy_ocid
tag_namespace_description = local.architecture_tag.tag_namespace_description
tag_namespace_name = local.architecture_tag.tag_namespace_name
is_namespace_retired = local.architecture_tag.is_namespace_retired
tag_map = local.architecture_tag.tag_map
tag_default_map = local.architecture_tag.tag_default_map
}