Skip to content

Commit

Permalink
complete net b
Browse files Browse the repository at this point in the history
  • Loading branch information
ludoo committed Jan 9, 2025
1 parent 9bdce52 commit 217df43
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions fast/stages/2-networking-c-separate-envs/net-dev.tf
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ module "dev-spoke-vpc" {
}
factories_config = {
context = { regions = var.regions }
subnets_folder = "${var.factories_config.data_dir}/subnets/dev"
subnets_folder = "${var.factories_config.subnets}/dev"
}
firewall_policy_enforcement_order = local.dev_cfg.fw_order
psa_configs = var.psa_ranges.dev
Expand Down Expand Up @@ -122,8 +122,8 @@ module "dev-spoke-firewall" {
disabled = true
}
factories_config = {
cidr_tpl_file = "${var.factories_config.data_dir}/cidrs.yaml"
rules_folder = "${var.factories_config.data_dir}/firewall-rules/dev"
cidr_tpl_file = var.factories_config.firewall.cidr_file
rules_folder = "${var.factories_config.firewall.classic_rules}/dev"
}
}

Expand All @@ -138,9 +138,9 @@ module "dev-firewall-policy" {
}
# TODO: add context for security groups
factories_config = {
cidr_file_path = "${var.factories_config.data_dir}/cidrs.yaml"
egress_rules_file_path = "${var.factories_config.data_dir}/firewall-policies/dev/egress.yaml"
ingress_rules_file_path = "${var.factories_config.data_dir}/firewall-policies/dev/ingress.yaml"
cidr_file_path = var.factories_config.firewall.cidr_file
egress_rules_file_path = "${var.factories_config.firewall.policy_rules}/dev/egress.yaml"
ingress_rules_file_path = "${var.factories_config.firewall.policy_rules}/dev/ingress.yaml"
}
}

Expand Down
12 changes: 6 additions & 6 deletions fast/stages/2-networking-c-separate-envs/net-prod.tf
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ module "prod-spoke-vpc" {
}
factories_config = {
context = { regions = var.regions }
subnets_folder = "${var.factories_config.data_dir}/subnets/prod"
subnets_folder = "${var.factories_config.subnets}/prod"
}
firewall_policy_enforcement_order = local.prod_cfg.fw_order
psa_configs = var.psa_ranges.prod
Expand Down Expand Up @@ -122,8 +122,8 @@ module "prod-spoke-firewall" {
disabled = true
}
factories_config = {
cidr_tpl_file = "${var.factories_config.data_dir}/cidrs.yaml"
rules_folder = "${var.factories_config.data_dir}/firewall-rules/prod"
cidr_tpl_file = var.factories_config.firewall.cidr_file
rules_folder = "${var.factories_config.firewall.classic_rules}/prod"
}
}

Expand All @@ -138,9 +138,9 @@ module "prod-firewall-policy" {
}
# TODO: add context for security groups
factories_config = {
cidr_file_path = "${var.factories_config.data_dir}/cidrs.yaml"
egress_rules_file_path = "${var.factories_config.data_dir}/firewall-policies/prod/egress.yaml"
ingress_rules_file_path = "${var.factories_config.data_dir}/firewall-policies/prod/ingress.yaml"
cidr_file_path = var.factories_config.firewall.cidr_file
egress_rules_file_path = "${var.factories_config.firewall.policy_rules}/prod/egress.yaml"
ingress_rules_file_path = "${var.factories_config.firewall.policy_rules}/prod/ingress.yaml"
}
}

Expand Down

0 comments on commit 217df43

Please sign in to comment.