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

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

Open
nhhai opened this issue Aug 9, 2024 · 1 comment
Open

Comments

@nhhai
Copy link

nhhai commented Aug 9, 2024

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 = "[email protected]: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
Copy link
Author

nhhai commented Aug 9, 2024

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.

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