generated from oracle-devrel/repo-template
-
Notifications
You must be signed in to change notification settings - Fork 20
/
security-lists.tf
35 lines (29 loc) · 950 Bytes
/
security-lists.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
## Copyright (c) 2022 Oracle and/or its affiliates.
## All rights reserved. The Universal Permissive License (UPL), Version 1.0 as shown at http://oss.oracle.com/licenses/upl
resource "oci_core_security_list" "postgresql_securitylist" {
count = !var.use_existing_vcn ? 1 : 0
compartment_id = var.compartment_ocid
vcn_id = oci_core_virtual_network.postgresql_vcn[0].id
display_name = "PostgreSQLSecurityList"
egress_security_rules {
protocol = "6"
destination = "0.0.0.0/0"
}
ingress_security_rules {
protocol = "6"
source = "0.0.0.0/0"
tcp_options {
max = "22"
min = "22"
}
}
ingress_security_rules {
protocol = "6"
source = "0.0.0.0/0"
tcp_options {
max = "5432"
min = "5432"
}
}
#defined_tags = { "${oci_identity_tag_namespace.ArchitectureCenterTagNamespace.name}.${oci_identity_tag.ArchitectureCenterTag.name}" = var.release }
}