terraform-google-modules/terraform-google-address

"region" is required for global address

tlynchpin opened this issue · 5 comments

The example in README.md for a global address shows region omitted (but also specifying version = 0.1.0). Using current version 2.1.0 region is required.

A region for google_compute_global_address is not required based on this documentation
https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/compute_global_address

@tlynchpin do you still have the problem?
I have tried to reproduce your problem with no luck.

With version 3.0.0 I find it necessary to add region = null, otherwise I get the error:

 Error: Missing required argument
│ 
│   on projects.tf line 60, in module "ip-addresses":
│   60: module "ip-addresses" {
│ 
│ The argument "region" is required, but no definition was found.

Region is a required argument for creating a global address resource and the error is valid. I'm not sure I follow your concern with that error. Please explain

Closing since this is stale. Please reopen if necessary.