fix major issues
This commit is contained in:
@@ -19,4 +19,33 @@ resource "oci_core_network_security_group_security_rule" "jod_servers_security_i
|
||||
}
|
||||
}
|
||||
|
||||
#--------------------------------------------------------------------------------------------------------------------------------------------
|
||||
#--------------------------------------------------------------------------------------------------------------------------------------------
|
||||
resource "oci_core_network_security_group_security_rule" "jod_servers_security_egress_rule_01" {
|
||||
network_security_group_id = oci_core_network_security_group.jod-servers-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" "jod_servers_security_egress_rule_02" {
|
||||
network_security_group_id = oci_core_network_security_group.jod-servers-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
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user