Skip to content

Commit d8b1a89

Browse files
committed
added tags to security lists and subnets
Signed-off-by: Ali Mukadam <[email protected]>
1 parent 7d369a9 commit d8b1a89

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

security.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
resource "oci_core_security_list" "bastion" {
55
compartment_id = var.compartment_id
66
display_name = "${var.label_prefix}-bastion"
7+
freeform_tags = var.tags.network
78

89
egress_security_rules {
910
protocol = local.all_protocols

subnets.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ resource "oci_core_subnet" "bastion" {
66
compartment_id = var.compartment_id
77
display_name = "${var.label_prefix}-bastion"
88
dns_label = "bastion"
9+
freeform_tags = var.tags.network
910
prohibit_public_ip_on_vnic = false
1011
route_table_id = var.ig_route_id
1112
security_list_ids = [oci_core_security_list.bastion[0].id]
1213
vcn_id = var.vcn_id
13-
freeform_tags = var.tags.network
1414

1515
count = var.bastion_enabled == true ? 1 : 0
1616
}

0 commit comments

Comments
 (0)