Skip to content

Commit

Permalink
disable NAT for RDS and ElastiCache subnets
Browse files Browse the repository at this point in the history
These subnets don't currently have a NAT gateway, and we want to avoid creating one for them
  • Loading branch information
samsimpson1 committed Jan 17, 2025
1 parent 1c4dc4f commit 8ffad42
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
12 changes: 6 additions & 6 deletions terraform/deployments/tfc-configuration/variables-integration.tf
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ module "variable-set-integration" {
b = { az = "eu-west-1b", cidr = "10.1.5.0/24" }
c = { az = "eu-west-1c", cidr = "10.1.6.0/24" }

rds_a = { az = "eu-west-1a", cidr = "10.1.10.0/24" }
rds_b = { az = "eu-west-1b", cidr = "10.1.11.0/24" }
rds_c = { az = "eu-west-1c", cidr = "10.1.12.0/24" }
rds_a = { az = "eu-west-1a", cidr = "10.1.10.0/24", nat = false }
rds_b = { az = "eu-west-1b", cidr = "10.1.11.0/24", nat = false }
rds_c = { az = "eu-west-1c", cidr = "10.1.12.0/24", nat = false }

elasticache_a = { az = "eu-west-1a", cidr = "10.1.7.0/24" }
elasticache_b = { az = "eu-west-1b", cidr = "10.1.8.0/24" }
elasticache_c = { az = "eu-west-1c", cidr = "10.1.9.0/24" }
elasticache_a = { az = "eu-west-1a", cidr = "10.1.7.0/24", nat = false }
elasticache_b = { az = "eu-west-1b", cidr = "10.1.8.0/24", nat = false }
elasticache_c = { az = "eu-west-1c", cidr = "10.1.9.0/24", nat = false }
}

govuk_environment = "integration"
Expand Down
12 changes: 6 additions & 6 deletions terraform/deployments/tfc-configuration/variables-production.tf
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ module "variable-set-production" {
b = { az = "eu-west-1b", cidr = "10.13.5.0/24" }
c = { az = "eu-west-1c", cidr = "10.13.6.0/24" }

rds_a = { az = "eu-west-1a", cidr = "10.13.10.0/24" }
rds_b = { az = "eu-west-1b", cidr = "10.13.11.0/24" }
rds_c = { az = "eu-west-1c", cidr = "10.13.12.0/24" }
rds_a = { az = "eu-west-1a", cidr = "10.13.10.0/24", nat = false }
rds_b = { az = "eu-west-1b", cidr = "10.13.11.0/24", nat = false }
rds_c = { az = "eu-west-1c", cidr = "10.13.12.0/24", nat = false }

elasticache_a = { az = "eu-west-1a", cidr = "10.13.7.0/24" }
elasticache_b = { az = "eu-west-1b", cidr = "10.13.8.0/24" }
elasticache_c = { az = "eu-west-1c", cidr = "10.13.9.0/24" }
elasticache_a = { az = "eu-west-1a", cidr = "10.13.7.0/24", nat = false }
elasticache_b = { az = "eu-west-1b", cidr = "10.13.8.0/24", nat = false }
elasticache_c = { az = "eu-west-1c", cidr = "10.13.9.0/24", nat = false }
}

govuk_environment = "production"
Expand Down
12 changes: 6 additions & 6 deletions terraform/deployments/tfc-configuration/variables-staging.tf
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ module "variable-set-staging" {
b = { az = "eu-west-1b", cidr = "10.12.5.0/24" }
c = { az = "eu-west-1c", cidr = "10.12.6.0/24" }

rds_a = { az = "eu-west-1a", cidr = "10.12.10.0/24" }
rds_b = { az = "eu-west-1b", cidr = "10.12.11.0/24" }
rds_c = { az = "eu-west-1c", cidr = "10.12.12.0/24" }
rds_a = { az = "eu-west-1a", cidr = "10.12.10.0/24", nat = false }
rds_b = { az = "eu-west-1b", cidr = "10.12.11.0/24", nat = false }
rds_c = { az = "eu-west-1c", cidr = "10.12.12.0/24", nat = false }

elasticache_a = { az = "eu-west-1a", cidr = "10.12.7.0/24" }
elasticache_b = { az = "eu-west-1b", cidr = "10.12.8.0/24" }
elasticache_c = { az = "eu-west-1c", cidr = "10.12.9.0/24" }
elasticache_a = { az = "eu-west-1a", cidr = "10.12.7.0/24", nat = false }
elasticache_b = { az = "eu-west-1b", cidr = "10.12.8.0/24", nat = false }
elasticache_c = { az = "eu-west-1c", cidr = "10.12.9.0/24", nat = false }
}

govuk_environment = "staging"
Expand Down

0 comments on commit 8ffad42

Please sign in to comment.