Skip to content

Commit

Permalink
Merge pull request #3 from truefoundry/network-module-clustername
Browse files Browse the repository at this point in the history
Added support for cluster-name in ingress/egress rules
  • Loading branch information
dunefro authored Dec 20, 2023
2 parents d58510b + 020d2b9 commit 3cbfaf7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gcn.tf
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ module "network" {
}
ingress_rules = [
{
name = "ingress-allow-http-https"
name = "${local.network_name}-ingress-allow-http-https"
description = "Allow port 80 and 443"
source_ranges = ["0.0.0.0/0"]
allow = [
Expand All @@ -40,7 +40,7 @@ module "network" {
]
},
{
name = "ingress-allow-internal"
name = "${local.network_name}-ingress-allow-internal"
description = "Allow all ports inside a subnet"
source_ranges = [var.private_subnet_cidr]
allow = [
Expand All @@ -52,7 +52,7 @@ module "network" {
]
egress_rules = [
{
name = "egress-allow-all"
name = "${local.network_name}-egress-allow-all"
description = "Allow egress"
source_ranges = ["0.0.0.0/0"]
destination_ranges = ["0.0.0.0/0"]
Expand All @@ -68,7 +68,7 @@ module "network" {
]
routes = [
{
name = "egress-internet"
name = "${local.network_name}-egress-internet"
description = "Route through IGW to access internet"
destination_range = "0.0.0.0/0"
tags = "egress-inet"
Expand Down

0 comments on commit 3cbfaf7

Please sign in to comment.