-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnsgprivlb.tf
62 lines (59 loc) · 2.19 KB
/
nsgprivlb.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
resource oci_core_network_security_group nsgprivlb01 {
compartment_id = var.compartment_ocid
display_name = local.nsgprivlb1_name
vcn_id = local.Okit_Vcn001_id
}
resource oci_core_network_security_group_security_rule nsgprivlb01_network_security_group_security_rule_3 {
description = "LB egress"
destination = var.sub01_ip_range
destination_type = "CIDR_BLOCK"
direction = "EGRESS"
network_security_group_id = oci_core_network_security_group.nsgprivlb01.id
protocol = "6"
#source = <<Optional value not found in discovery>>
source_type = ""
stateless = "false"
tcp_options {
destination_port_range {
max = "80"
min = "80"
}
#source_port_range = <<Optional value not found in discovery>>
}
}
resource oci_core_network_security_group_security_rule nsgprivlb01_network_security_group_security_rule_4 {
#description = <<Optional value not found in discovery>>
#destination = <<Optional value not found in discovery>>
destination_type = ""
direction = "INGRESS"
network_security_group_id = oci_core_network_security_group.nsgprivlb01.id
protocol = "6"
source = var.on_prem_ip_range
source_type = "CIDR_BLOCK"
stateless = "false"
tcp_options {
destination_port_range {
max = "80"
min = "80"
}
#source_port_range = <<Optional value not found in discovery>>
}
}
resource oci_core_network_security_group_security_rule nsgprivlb01_network_security_group_security_rule_5 {
#description = <<Optional value not found in discovery>>
destination = var.on_prem_ip_range
destination_type = "CIDR_BLOCK"
direction = "EGRESS"
network_security_group_id = oci_core_network_security_group.nsgprivlb01.id
protocol = "6"
#source = <<Optional value not found in discovery>>
source_type = ""
stateless = "false"
tcp_options {
destination_port_range {
max = "80"
min = "80"
}
#source_port_range = <<Optional value not found in discovery>>
}
}