terraform-aws-modules / terraform-aws-vpc

Terraform module to create AWS VPC resources 🇺🇦
https://registry.terraform.io/modules/terraform-aws-modules/vpc/aws
Apache License 2.0
2.97k stars 4.42k forks source link

Cannot define a default route table route with an IPv6 CIDR. #1080

Closed richardgavel-ordinaryexperts closed 3 months ago

richardgavel-ordinaryexperts commented 4 months ago

Description

Can not add IPv6 routes to default route table.

Versions

Reproduction Code [Required]

module "vpc" {
  default_route_table_routes = [
    {
      gateway_id                 = "igw-026553dd16e3604fe"
      ipv6_cidr_block            = "::/0"
    }
  ]
}

Expected behavior

Route added to default route table

Actual behavior

Error

│ Error: Missing map element
│ 
│   on .terraform/modules/vpc/main.tf line 1353, in resource "aws_default_route_table" "default":
│ 1353:       cidr_block      = route.value.cidr_block
│     ├────────────────
│     │ route.value is map of string with 2 elements
│ 
│ This map does not have an element with the key "cidr_block".

Additional context

Issue is that the cidr_block is a required field, even though in the comment above it says "one of the following must be required".

https://github.com/terraform-aws-modules/terraform-aws-vpc/blob/master/main.tf#L1340

github-actions[bot] commented 3 months ago

This issue has been automatically marked as stale because it has been open 30 days with no activity. Remove stale label or comment or this issue will be closed in 10 days

github-actions[bot] commented 3 months ago

This issue was automatically closed because of stale in 10 days

github-actions[bot] commented 2 months ago

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.