aws-ia / terraform-aws-vpc

AWS VPC Module
https://registry.terraform.io/modules/aws-ia/vpc/aws/latest
Apache License 2.0
92 stars 100 forks source link

Variables on the v4.4.2 branch doesn't match the one on terraform registry #155

Open nhhai opened 3 months ago

nhhai commented 3 months ago

Not sure if this is the right place for this. On the registry: https://registry.terraform.io/modules/aws-ia/vpc/aws/latest: az_count is required and no azs variable.

When using this block in VS Code with Hashicorp plugin it will show the error:

module "vpc" {
  source  = "aws-ia/vpc/aws"
  version = "4.4.2"

  name = var.computed_id
  azs  = var.azs

  vpc_ipv4_ipam_pool_id   = data.aws_vpc_ipam_pool.test.id
  vpc_ipv4_netmask_length = 26

  subnets = {
    private = {
      netmask                 = 28
      connect_to_public_natgw = false
    }
  }
}
image

Switch the source the source = "git@github.com:aws-ia/terraform-aws-vpc.git?ref=v4.4.2" will resolve it. I didn't check the full list, but probably the whole thing on the registry is from an older version.

nhhai commented 3 months ago

Actually it's an error on my part. What I was looking at on Git is the main branch, not v4.4.2. Please close this one as invalid.