Update nsg-sei-lbs-nsg.tf
This commit is contained in:
@@ -48,4 +48,46 @@ resource "oci_core_network_security_group_security_rule" "nsg_lbr_security_rule_
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#------------------------------------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------------------------------------
|
||||||
|
resource "oci_core_network_security_group_security_rule" "nsg_lbr_security_rule_ingress_01" {
|
||||||
|
network_security_group_id = oci_core_network_security_group.load-balancer-public-nsg.id
|
||||||
|
description = "Egress to app port TCP/443"
|
||||||
|
destination = var.cidr_subnet_app
|
||||||
|
destination_type = "CIDR_BLOCK"
|
||||||
|
direction = "EGRESS"
|
||||||
|
protocol = "6"
|
||||||
|
tcp_options {
|
||||||
|
destination_port_range {
|
||||||
|
max = 443
|
||||||
|
min = 443
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
resource "oci_core_network_security_group_security_rule" "nsg_lbr_security_rule_ingress_02" {
|
||||||
|
network_security_group_id = oci_core_network_security_group.load-balancer-public-nsg.id
|
||||||
|
description = "Egress to app port TCP/80"
|
||||||
|
destination = var.cidr_subnet_app
|
||||||
|
destination_type = "CIDR_BLOCK"
|
||||||
|
direction = "EGRESS"
|
||||||
|
protocol = "6"
|
||||||
|
tcp_options {
|
||||||
|
destination_port_range {
|
||||||
|
max = 80
|
||||||
|
min = 80
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
resource "oci_core_network_security_group_security_rule" "nsg_lbr_security_rule_ingress_03" {
|
||||||
|
network_security_group_id = oci_core_network_security_group.load-balancer-public-nsg.id
|
||||||
|
description = "Egress to app port TCP/8983"
|
||||||
|
destination = var.cidr_subnet_app
|
||||||
|
destination_type = "CIDR_BLOCK"
|
||||||
|
direction = "EGRESS"
|
||||||
|
protocol = "6"
|
||||||
|
tcp_options {
|
||||||
|
destination_port_range {
|
||||||
|
max = 8983
|
||||||
|
min = 8983
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user