โท
โ Error: Invalid index
โ
โ on .terraform/modules/vpc/modules/vpc/outputs.tf line 123, in output "egress_only_internet_gateway_id":
โ 123: value = one(aws_egress_only_internet_gateway.this[0].id)
โ โโโโโโโโโโโโโโโโโ
โ โ aws_egress_only_internet_gateway.this is empty tuple
โ
โ The given key does not identify an element in this collection value: the collection has no elements.
โต
FYI, please refer to the code used run terraform apply as below.
provider "aws" {
region = "ap-northeast-2"
}
module "vpc" {
source = "tedilabs/network/aws//modules/vpc"
version = "0.27.0"
name = "terraform-test"
cidr_block = "10.0.0.0/16"
# internet_gateway_enabled = true
dns_hostnames_enabled = true
dns_support_enabled = true
tags = {}
}