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