@@ -3,12 +3,14 @@ resource "oci_core_virtual_network" "OCI_ES_VCN" {
33 compartment_id = var. compartment_ocid
44 display_name = " OCI_ES_VCN"
55 dns_label = " OCIESVCN"
6+ defined_tags = {" ${ oci_identity_tag_namespace . ArchitectureCenterTagNamespace . name } .${ oci_identity_tag . ArchitectureCenterTag . name } " = var.release }
67}
78
89resource "oci_core_internet_gateway" "OCI_ES_IGW" {
910 compartment_id = var. compartment_ocid
1011 display_name = " OCI_ES_IGW"
1112 vcn_id = oci_core_virtual_network. OCI_ES_VCN . id
13+ defined_tags = {" ${ oci_identity_tag_namespace . ArchitectureCenterTagNamespace . name } .${ oci_identity_tag . ArchitectureCenterTag . name } " = var.release }
1214}
1315
1416resource "oci_core_route_table" "OCI_PUB_RTB" {
@@ -21,6 +23,7 @@ resource "oci_core_route_table" "OCI_PUB_RTB" {
2123 destination_type = " CIDR_BLOCK"
2224 network_entity_id = oci_core_internet_gateway. OCI_ES_IGW . id
2325 }
26+ defined_tags = {" ${ oci_identity_tag_namespace . ArchitectureCenterTagNamespace . name } .${ oci_identity_tag . ArchitectureCenterTag . name } " = var.release }
2427}
2528
2629resource "oci_core_route_table" "OCI_ES_RTB" {
@@ -33,6 +36,7 @@ resource "oci_core_route_table" "OCI_ES_RTB" {
3336 destination_type = " CIDR_BLOCK"
3437 network_entity_id = data. oci_core_private_ips . BastionPrivateIPs . private_ips [0 ][" id" ]
3538 }
39+ defined_tags = {" ${ oci_identity_tag_namespace . ArchitectureCenterTagNamespace . name } .${ oci_identity_tag . ArchitectureCenterTag . name } " = var.release }
3640}
3741
3842resource "oci_core_security_list" "LBSecList" {
@@ -63,6 +67,7 @@ resource "oci_core_security_list" "LBSecList" {
6367 protocol = " 6"
6468 source = " 0.0.0.0/0"
6569 }
70+ defined_tags = {" ${ oci_identity_tag_namespace . ArchitectureCenterTagNamespace . name } .${ oci_identity_tag . ArchitectureCenterTag . name } " = var.release }
6671}
6772
6873resource "oci_core_security_list" "PrivSecList" {
@@ -111,6 +116,7 @@ resource "oci_core_security_list" "PrivSecList" {
111116 protocol = " 6"
112117 source = var. VCN-CIDR
113118 }
119+ defined_tags = {" ${ oci_identity_tag_namespace . ArchitectureCenterTagNamespace . name } .${ oci_identity_tag . ArchitectureCenterTag . name } " = var.release }
114120}
115121
116122resource "oci_core_security_list" "BastionSecList" {
@@ -136,6 +142,7 @@ resource "oci_core_security_list" "BastionSecList" {
136142 protocol = " all"
137143 source = var. VCN-CIDR
138144 }
145+ defined_tags = {" ${ oci_identity_tag_namespace . ArchitectureCenterTagNamespace . name } .${ oci_identity_tag . ArchitectureCenterTag . name } " = var.release }
139146}
140147
141148resource "oci_core_subnet" "LBSubnetAD1" {
@@ -148,6 +155,7 @@ resource "oci_core_subnet" "LBSubnetAD1" {
148155 security_list_ids = [oci_core_security_list . LBSecList . id ]
149156 dhcp_options_id = oci_core_virtual_network. OCI_ES_VCN . default_dhcp_options_id
150157 dns_label = " lbad1"
158+ defined_tags = {" ${ oci_identity_tag_namespace . ArchitectureCenterTagNamespace . name } .${ oci_identity_tag . ArchitectureCenterTag . name } " = var.release }
151159}
152160
153161resource "oci_core_subnet" "LBSubnetAD2" {
@@ -160,6 +168,7 @@ resource "oci_core_subnet" "LBSubnetAD2" {
160168 security_list_ids = [oci_core_security_list . LBSecList . id ]
161169 dhcp_options_id = oci_core_virtual_network. OCI_ES_VCN . default_dhcp_options_id
162170 dns_label = " lbad2"
171+ defined_tags = {" ${ oci_identity_tag_namespace . ArchitectureCenterTagNamespace . name } .${ oci_identity_tag . ArchitectureCenterTag . name } " = var.release }
163172}
164173
165174resource "oci_core_subnet" "PrivSubnetAD1" {
@@ -171,6 +180,7 @@ resource "oci_core_subnet" "PrivSubnetAD1" {
171180 route_table_id = oci_core_route_table. OCI_ES_RTB . id
172181 security_list_ids = [oci_core_security_list . PrivSecList . id ]
173182 dhcp_options_id = oci_core_virtual_network. OCI_ES_VCN . default_dhcp_options_id
183+ defined_tags = {" ${ oci_identity_tag_namespace . ArchitectureCenterTagNamespace . name } .${ oci_identity_tag . ArchitectureCenterTag . name } " = var.release }
174184
175185 # prohibit_public_ip_on_vnic = "true"
176186 dns_label = " privad1"
@@ -185,6 +195,7 @@ resource "oci_core_subnet" "PrivSubnetAD2" {
185195 route_table_id = oci_core_route_table. OCI_ES_RTB . id
186196 security_list_ids = [oci_core_security_list . PrivSecList . id ]
187197 dhcp_options_id = oci_core_virtual_network. OCI_ES_VCN . default_dhcp_options_id
198+ defined_tags = {" ${ oci_identity_tag_namespace . ArchitectureCenterTagNamespace . name } .${ oci_identity_tag . ArchitectureCenterTag . name } " = var.release }
188199
189200 # prohibit_public_ip_on_vnic = "true"
190201 dns_label = " privad2"
@@ -199,6 +210,7 @@ resource "oci_core_subnet" "PrivSubnetAD3" {
199210 route_table_id = oci_core_route_table. OCI_ES_RTB . id
200211 security_list_ids = [oci_core_security_list . PrivSecList . id ]
201212 dhcp_options_id = oci_core_virtual_network. OCI_ES_VCN . default_dhcp_options_id
213+ defined_tags = {" ${ oci_identity_tag_namespace . ArchitectureCenterTagNamespace . name } .${ oci_identity_tag . ArchitectureCenterTag . name } " = var.release }
202214
203215 # prohibit_public_ip_on_vnic = "true"
204216 dns_label = " privad3"
@@ -213,6 +225,7 @@ resource "oci_core_subnet" "BastionSubnetAD1" {
213225 route_table_id = oci_core_route_table. OCI_PUB_RTB . id
214226 security_list_ids = [oci_core_security_list . BastionSecList . id ]
215227 dhcp_options_id = oci_core_virtual_network. OCI_ES_VCN . default_dhcp_options_id
228+ defined_tags = {" ${ oci_identity_tag_namespace . ArchitectureCenterTagNamespace . name } .${ oci_identity_tag . ArchitectureCenterTag . name } " = var.release }
216229 dns_label = " bastsub"
217230}
218231
0 commit comments