Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
richardgavel-ordinaryexperts opened this issue May 23, 2024 · 0 comments

Comments

@richardgavel-ordinaryexperts

Description

Can not add IPv6 routes to default route table.

Versions

  • Module version [Required]: 5.8.1

  • Terraform version:
    1.7.x

  • Provider version(s):
    5.30.x

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant