Skip to content

Commit

Permalink
Fix issue #458 - default security list
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmindev committed Jan 4, 2024
1 parent a987124 commit 7d3ae8f
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Licensed under the Universal Permissive License v 1.0 as shown at https: //oss.oracle.com/licenses/upl. #
# Author: Cosmin Tudor #
# Author email: cosmin.tudor@oracle.com #
# Last Modified: Wed Nov 15 2023 #
# Last Modified: Thu Jan 04 2024 #
# Modified by: Cosmin Tudor, email: cosmin.tudor@oracle.com #
# ####################################################################################################### #

Expand All @@ -30,6 +30,40 @@ network_configuration = {
is_create_igw = false
is_attach_drg = false
block_nat_traffic = false
default_security_list = {
display_name = "sl-lb"

egress_rules = [
{
description = "egress to 0.0.0.0/0 over ALL protocols"
stateless = false
protocol = "ALL"
dst = "0.0.0.0/0"
dst_type = "CIDR_BLOCK"
}
]

ingress_rules = [
{
description = "ingress from 0.0.0.0/0 over TCP22"
stateless = false
protocol = "TCP"
src = "0.0.0.0/0"
src_type = "CIDR_BLOCK"
dst_port_min = 22
dst_port_max = 22
},
{
description = "ingress from 0.0.0.0/0 over TCP443"
stateless = false
protocol = "TCP"
src = "0.0.0.0/0"
src_type = "CIDR_BLOCK"
dst_port_min = 443
dst_port_max = 443
}
]
}

security_lists = {

Expand Down
6 changes: 3 additions & 3 deletions examples/simple-example/network_configuration.auto.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Licensed under the Universal Permissive License v 1.0 as shown at https: //oss.oracle.com/licenses/upl. #
# Author: Cosmin Tudor #
# Author email: cosmin.tudor@oracle.com #
# Last Modified: Mon Dec 11 2023 #
# Last Modified: Thu Jan 04 2024 #
# Modified by: Cosmin Tudor, email: cosmin.tudor@oracle.com #
# ####################################################################################################### #

Expand All @@ -30,7 +30,7 @@ network_configuration = {
is_create_igw = false
is_attach_drg = false
block_nat_traffic = false
default-security-list = {
default_security_list = {
display_name = "sl-lb"

egress_rules = [
Expand Down Expand Up @@ -230,7 +230,7 @@ network_configuration = {
prohibit_public_ip_on_vnic = true
route_table_id = null
route_table_key = "RT-02-KEY"
security_list_keys = ["SECLIST-DB-KEY"]
security_list_keys = ["default_security_list"]
}
}

Expand Down
2 changes: 1 addition & 1 deletion outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Licensed under the Universal Permissive License v 1.0 as shown at https: //oss.oracle.com/licenses/upl. #
# Author: Cosmin Tudor #
# Author email: cosmin.tudor@oracle.com #
# Last Modified: Wed Jan 03 2024 #
# Last Modified: Thu Jan 04 2024 #
# Modified by: Cosmin Tudor, email: cosmin.tudor@oracle.com #
# ####################################################################################################### #

Expand Down

0 comments on commit 7d3ae8f

Please sign in to comment.