fix major issues
This commit is contained in:
@@ -33,6 +33,36 @@ resource "oci_core_network_security_group_security_rule" "nsg_solr-server_ingres
|
||||
}
|
||||
}
|
||||
}
|
||||
#--------------------------------------------------------------------------------------------------------------------------------------------
|
||||
resource "oci_core_network_security_group_security_rule" "nsg_solr_servers_security_egress_rule_01" {
|
||||
network_security_group_id = oci_core_network_security_group.solr-server-nsg.id
|
||||
description = "Egress to OSN"
|
||||
destination = lookup(data.oci_core_services.all_services.services[1], "cidr_block")
|
||||
destination_type = "SERVICE_CIDR_BLOCK"
|
||||
direction = "EGRESS"
|
||||
protocol = "6"
|
||||
tcp_options {
|
||||
destination_port_range {
|
||||
max = 443
|
||||
min = 443
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
resource "oci_core_network_security_group_security_rule" "nsg_solr_servers_security_egress_rule_02" {
|
||||
network_security_group_id = oci_core_network_security_group.solr-server-nsg.id
|
||||
description = "Egress to Internet only port TCP/443"
|
||||
destination = var.cidr_anywhere
|
||||
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_solr_servers_security_egress_rule_03" {
|
||||
network_security_group_id = oci_core_network_security_group.solr-server-nsg.id
|
||||
|
||||
Reference in New Issue
Block a user