Carga inicial
This commit is contained in:
22
nsg-jod-servers-nsg.tf
Executable file
22
nsg-jod-servers-nsg.tf
Executable file
@@ -0,0 +1,22 @@
|
||||
resource "oci_core_network_security_group" "jod-servers-nsg" {
|
||||
compartment_id = var.ocid_compartment_networking
|
||||
display_name = "jod-servers-nsg"
|
||||
vcn_id = var.ocid_vcn_3_tier
|
||||
}
|
||||
#--------------------------------------------------------------------------------------------------------------------------------------------
|
||||
resource "oci_core_network_security_group_security_rule" "jod_servers_security_ingress_rule_01" {
|
||||
network_security_group_id = oci_core_network_security_group.jod-servers-nsg.id
|
||||
description = "Ingress Jod from app-subnet."
|
||||
source = var.cidr_subnet_app
|
||||
source_type = "CIDR_BLOCK"
|
||||
direction = "INGRESS"
|
||||
protocol = "6"
|
||||
tcp_options {
|
||||
destination_port_range {
|
||||
max = 8080
|
||||
min = 8080
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#--------------------------------------------------------------------------------------------------------------------------------------------
|
||||
Reference in New Issue
Block a user