Skip to content

Commit

Permalink
Merge pull request #154 from oracle-quickstart/DR_MR_Feature
Browse files Browse the repository at this point in the history
Modifed the Network Module
  • Loading branch information
VinayKumar611 authored Jan 19, 2024
2 parents f3450c2 + 07911c2 commit 996c6a9
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 17 deletions.
3 changes: 1 addition & 2 deletions templates/elz-backup/elz-backup-environment/network.tf
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ module "network" {
nfw_instance_name = var.nfw_instance_name
nfw_instance_policy = var.nfw_instance_policy
nfw_use_existing_network = var.nfw_use_existing_network
//TO DO
#log_group_id = var.log_group_id
log_group_id = module.logging.log_group_id

enable_nat_gateway_spoke = var.enable_nat_gateway_spoke
enable_service_gateway_spoke = var.enable_service_gateway_spoke
Expand Down
9 changes: 3 additions & 6 deletions templates/elz-backup/elz-backup-hub/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -729,16 +729,15 @@ resource "oci_network_firewall_network_firewall_policy" "network_firewall_policy
########### Create Firewall Firewall Threat and Traffic Log ##########
##############################################################################
// TO DO ONCE BACKUP LOGGING MODULE IS DONE
/*

module "firewall_threat_log_backup" {
count = var.enable_network_firewall && var.enable_traffic_threat_log ? 1 : 0
source = "../../../modules/service-log-nfw"

#service_log_map = local.network_firewall_threat
log_display_name = local.firewall_threat_log.log_display_name
log_type = local.firewall_threat_log.log_type
//TO DO
#log_group_id = var.log_group_id
log_group_id = var.log_group_id
log_source_category = local.firewall_threat_log.log_source_category
log_source_resource = oci_network_firewall_network_firewall.network_firewall_backup[0].id
log_source_service = local.firewall_threat_log.log_source_service
Expand All @@ -755,8 +754,7 @@ module "firewall_traffic_log_backup" {
#service_log_map = local.network_firewall_traffic
log_display_name = local.firewall_traffic_log.log_display_name
log_type = local.firewall_traffic_log.log_type
//TO DO
#log_group_id = var.log_group_id
log_group_id = var.log_group_id
log_source_category = local.firewall_traffic_log.log_source_category
log_source_resource = oci_network_firewall_network_firewall.network_firewall_backup[0].id
log_source_service = local.firewall_traffic_log.log_source_service
Expand All @@ -765,4 +763,3 @@ module "firewall_traffic_log_backup" {
oci = oci.backup_region
}
}
*/
8 changes: 4 additions & 4 deletions templates/elz-backup/elz-backup-hub/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -205,10 +205,10 @@ variable "nfw_instance_policy" {
type = string
description = "Network Firewall Policy Name."
}
#variable "log_group_id" {
# type = string
# description = "Log Group OCID."
#}
variable "log_group_id" {
type = string
description = "Log Group OCID."
}
variable "nfw_subnet_type" {
type = string
description = "Network Firewall Subnet Type : Public or Private Subnet."
Expand Down
2 changes: 1 addition & 1 deletion templates/elz-backup/elz-backup-network/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ module "hub_backup" {
nfw_instance_name = var.nfw_instance_name
nfw_instance_policy = var.nfw_instance_policy
nfw_use_existing_network = var.nfw_use_existing_network
#log_group_id = var.log_group_id
log_group_id = var.log_group_id

providers = {
oci = oci
Expand Down
8 changes: 4 additions & 4 deletions templates/elz-backup/elz-backup-network/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,10 @@ variable "nfw_instance_policy" {
type = string
description = "Network Firewall Policy Name."
}
#variable "log_group_id" {
# type = string
# description = "Log Group OCID."
#}
variable "log_group_id" {
type = string
description = "Log Group OCID."
}
variable "nfw_subnet_type"{
type = string
description = "Network Firewall Subnet Type : Public or Private Subnet."
Expand Down

0 comments on commit 996c6a9

Please sign in to comment.