╷
│ Error: Invalid index
│
│ on .terraform/modules/subnets/nat-gateway.tf line 24, in resource "aws_eip" "default":
│ 24: "Name" = format("%s%s%s", module.private_label.id, local.delimiter, local.az_map[element(var.availability_zones, count.index)])
│ ├────────────────
│ │ count.index is 2
│ │ local.az_map is object with 220 attributes
│ │ var.availability_zones is list of string with 3 elements
│
│ The given key does not identify an element in this collection value.
╵
╷
│ Error: Invalid index
│
│ on .terraform/modules/subnets/nat-gateway.tf line 24, in resource "aws_eip" "default":
│ 24: "Name" = format("%s%s%s", module.private_label.id, local.delimiter, local.az_map[element(var.availability_zones, count.index)])
│ ├────────────────
│ │ count.index is 0
│ │ local.az_map is object with 220 attributes
│ │ var.availability_zones is list of string with 3 elements
│
│ The given key does not identify an element in this collection value.
╵
╷
│ Error: Invalid index
│
│ on .terraform/modules/subnets/nat-gateway.tf line 24, in resource "aws_eip" "default":
│ 24: "Name" = format("%s%s%s", module.private_label.id, local.delimiter, local.az_map[element(var.availability_zones, count.index)])
│ ├────────────────
│ │ count.index is 1
│ │ local.az_map is object with 220 attributes
│ │ var.availability_zones is list of string with 3 elements
│
│ The given key does not identify an element in this collection value.
╵
╷
│ Error: Invalid index
│
│ on .terraform/modules/subnets/private.tf line 33, in resource "aws_subnet" "private":
│ 33: "Name" = format("%s%s%s", module.private_label.id, local.delimiter, local.az_map[element(var.availability_zones, count.index)])
│ ├────────────────
│ │ count.index is 0
│ │ local.az_map is object with 220 attributes
│ │ var.availability_zones is list of string with 3 elements
│
│ The given key does not identify an element in this collection value.
╵
╷
│ Error: Invalid index
│
│ on .terraform/modules/subnets/private.tf line 33, in resource "aws_subnet" "private":
│ 33: "Name" = format("%s%s%s", module.private_label.id, local.delimiter, local.az_map[element(var.availability_zones, count.index)])
│ ├────────────────
│ │ count.index is 1
│ │ local.az_map is object with 220 attributes
│ │ var.availability_zones is list of string with 3 elements
│
│ The given key does not identify an element in this collection value.
╵
╷
│ Error: Invalid index
│
│ on .terraform/modules/subnets/private.tf line 33, in resource "aws_subnet" "private":
│ 33: "Name" = format("%s%s%s", module.private_label.id, local.delimiter, local.az_map[element(var.availability_zones, count.index)])
│ ├────────────────
│ │ count.index is 2
│ │ local.az_map is object with 220 attributes
│ │ var.availability_zones is list of string with 3 elements
│
│ The given key does not identify an element in this collection value.
╵
╷
│ Error: Invalid index
│
│ on .terraform/modules/subnets/private.tf line 50, in resource "aws_route_table" "private":
│ 50: "Name" = format("%s%s%s", module.private_label.id, local.delimiter, local.az_map[element(var.availability_zones, count.index)])
│ ├────────────────
│ │ count.index is 2
│ │ local.az_map is object with 220 attributes
│ │ var.availability_zones is list of string with 3 elements
│
│ The given key does not identify an element in this collection value.
╵
╷
│ Error: Invalid index
│
│ on .terraform/modules/subnets/private.tf line 50, in resource "aws_route_table" "private":
│ 50: "Name" = format("%s%s%s", module.private_label.id, local.delimiter, local.az_map[element(var.availability_zones, count.index)])
│ ├────────────────
│ │ count.index is 0
│ │ local.az_map is object with 220 attributes
│ │ var.availability_zones is list of string with 3 elements
│
│ The given key does not identify an element in this collection value.
╵
╷
│ Error: Invalid index
│
│ on .terraform/modules/subnets/private.tf line 50, in resource "aws_route_table" "private":
│ 50: "Name" = format("%s%s%s", module.private_label.id, local.delimiter, local.az_map[element(var.availability_zones, count.index)])
│ ├────────────────
│ │ count.index is 1
│ │ local.az_map is object with 220 attributes
│ │ var.availability_zones is list of string with 3 elements
│
│ The given key does not identify an element in this collection value.
╵
╷
│ Error: Invalid index
│
│ on .terraform/modules/subnets/public.tf line 37, in resource "aws_subnet" "public":
│ 37: "Name" = format("%s%s%s", module.public_label.id, local.delimiter, local.az_map[element(var.availability_zones, count.index)])
│ ├────────────────
│ │ count.index is 0
│ │ local.az_map is object with 220 attributes
│ │ var.availability_zones is list of string with 3 elements
│
│ The given key does not identify an element in this collection value.
╵
╷
│ Error: Invalid index
│
│ on .terraform/modules/subnets/public.tf line 37, in resource "aws_subnet" "public":
│ 37: "Name" = format("%s%s%s", module.public_label.id, local.delimiter, local.az_map[element(var.availability_zones, count.index)])
│ ├────────────────
│ │ count.index is 2
│ │ local.az_map is object with 220 attributes
│ │ var.availability_zones is list of string with 3 elements
│
│ The given key does not identify an element in this collection value.
╵
╷
│ Error: Invalid index
│
│ on .terraform/modules/subnets/public.tf line 37, in resource "aws_subnet" "public":
│ 37: "Name" = format("%s%s%s", module.public_label.id, local.delimiter, local.az_map[element(var.availability_zones, count.index)])
│ ├────────────────
│ │ count.index is 1
│ │ local.az_map is object with 220 attributes
│ │ var.availability_zones is list of string with 3 elements
│
│ The given key does not identify an element in this collection value.
Describe the Bug
When trying to use this module with the new
ap-northeast-3
region it does not work.Expected Behavior
I expect it to create the subnets.
Steps to Reproduce
Steps to reproduce the behavior:
Will result in the following error:
Versions