Terraform AWS VPC Module v6.8.0: New Toggle to Skip Default
terraform-aws-modules/terraform-aws-vpc v6.8.0 adds a toggle to disable the default route on public route tables (#1188). Upgrade notes inside.
Infrastructure as Code
terraform-aws-vpc v6.9.0 adds per-index Name overrides for NAT gateways and EIPs. Upgrade steps, HCL examples, and verification included.
terraform-aws-modules/terraform-aws-vpc v6.9.0 is a small, targeted release that follows v6.8.0. It ships a single feature addressing a long-standing usability gap: the inability to customize the Name tag of individual NAT gateways and their associated Elastic IPs when multiple NAT gateways are provisioned across availability zones.
Previously, when enable_nat_gateway = true with one_nat_gateway_per_az = true (or single_nat_gateway = false), the module generated NAT gateway and EIP names using a single naming pattern applied uniformly across all AZs. There was no built-in way to give each NAT gateway or EIP a distinct, custom name without post-processing tags outside the module.
With v6.9.0, the module adds support for per-index name overrides, letting you assign a specific Name tag to each NAT gateway and EIP based on its position/index in the subnet list.
module "vpc" {
source = "terraform-aws-modules/vpc/aws"
version = "~> 6.9.0"
name = "my-vpc"
cidr = "10.0.0.0/16"
azs = ["us-east-1a", "us-east-1b", "us-east-1c"]
private_subnets = ["10.0.1.0/24", "10.0.2.0/24", "10.0.3.0/24"]
public_subnets = ["10.0.101.0/24", "10.0.102.0/24", "10.0.103.0/24"]
enable_nat_gateway = true
one_nat_gateway_per_az = true
# New: per-index name overrides for NAT gateways and their EIPs
nat_gateway_names = {
0 = "nat-gw-az1"
1 = "nat-gw-az2"
2 = "nat-gw-az3"
}
nat_eip_names = {
0 = "nat-eip-az1"
1 = "nat-eip-az2"
2 = "nat-eip-az3"
}
}Note: confirm the exact variable names (nat_gateway_names / nat_eip_names above are illustrative based on the feature description) against the module's variables.tf in the v6.9.0 release before relying on them, since the release notes for this version are thin — only the single feature entry is documented, with no additional context, deprecations, or breaking changes listed.
This is useful for teams that enforce strict naming conventions (e.g., mapping NAT gateways to specific AZ labels, cost-center tags, or compliance naming standards) without having to fork the module or apply post-hoc tag overrides with null_resource or external scripts.
There is nothing in the release notes indicating removed variables, renamed outputs, or provider version bumps. This appears to be a backward-compatible, additive feature release following semantic versioning (minor version bump from 6.8.0 to 6.9.0).
Pin the module version explicitly and upgrade:
module "vpc" {
source = "terraform-aws-modules/vpc/aws"
version = "~> 6.9.0"
# ... existing configuration
}Re-initialize to pull the new module version:
terraform init -upgradeReview the plan before applying, since adding Name tag overrides to existing NAT gateways/EIPs may trigger an in-place tag update (not a resource replacement):
terraform planAfter applying, confirm the new tags are set on the NAT gateway and EIP resources:
terraform state show 'module.vpc.aws_nat_gateway.this[0]'
terraform state show 'module.vpc.aws_eip.nat[0]'Check that the Name tag matches the value configured for that index, and cross-check in the AWS Console under VPC > NAT Gateways and VPC > Elastic IPs.
v6.9.0 is a low-risk, additive release that improves naming flexibility for multi-AZ NAT gateway deployments. Teams with strict tagging/naming policies should find this directly useful and can upgrade without expecting breaking changes. As always, run terraform plan before apply to confirm no unintended NAT gateway or EIP replacements occur.
terraform-aws-modules/terraform-aws-vpc v6.8.0 adds a toggle to disable the default route on public route tables (#1188). Upgrade notes inside.
terraform-aws-eks module v21.30.2 patches a bug guarding cluster references with local.create and simplifies ami_type null checks.
terraform-aws-eks v21.29.0 adds an opt-in aws:SourceArn condition to the Karpenter controller IAM role trust policy. Upgrade notes and verification steps.
Infrastructure as CodeLearn how to use Terraform data sources to query existing resources, look up AMIs, reference remote state, and build dynamic configurations. Complete.