fix: use provider-compatible email subnet security list
This commit is contained in:
parent
a880a34b06
commit
564648a61b
|
|
@ -121,30 +121,6 @@ resource "oci_core_security_list" "email_subnet" {
|
|||
destination = "0.0.0.0/0"
|
||||
}
|
||||
|
||||
ingress_security_rules {
|
||||
protocol = "6"
|
||||
source = var.admin_cidr
|
||||
tcp_options {
|
||||
destination_port_range {
|
||||
min = 22
|
||||
max = 22
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dynamic "ingress_security_rules" {
|
||||
for_each = var.open_mail_ports ? [25, 465, 587, 993] : []
|
||||
content {
|
||||
protocol = "6"
|
||||
source = "0.0.0.0/0"
|
||||
tcp_options {
|
||||
destination_port_range {
|
||||
min = ingress_security_rules.value
|
||||
max = ingress_security_rules.value
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
resource "oci_core_subnet" "email" {
|
||||
|
|
|
|||
Loading…
Reference in New Issue