tedilabs / terraform-aws-network

🌳 A sustainable Terraform Package which creates VPC resources (VPC, Subnet, NACL, NAT Gateway, Route Table) on AWS
https://registry.terraform.io/modules/tedilabs/network/aws
Apache License 2.0
23 stars 10 forks source link

[BUG]:VPC Module / aws_egress_only_internet_gateway.this is empty tuple #36

Closed JAESKAAA closed 10 months ago

JAESKAAA commented 1 year ago

Is there an existing issue for this?

Description of the bug

#Error Description When executing Terraform code including the vpc module, the following error messages appears.

╷
│ 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.
╵

Steps To Reproduce

#Version Info

#Used Module info

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 = {}
}

Is there any specific information or settings that need to be provided? Thanks

Which version of the app are you using?

1.2.0

### Tasks
github-actions[bot] commented 1 year ago

:wave: Welcome! Looks like this is your first issue.

Hey, thanks for your contribution! Please give us a bit of time to review it. 😄

Be sure to follow the issue template!