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

Creating global IP address fails with error in v3.0.0 but works in v2.1.1 #34

Open
abhinavrau opened this issue Jul 12, 2021 · 1 comment
Labels
bug Something isn't working P2 high priority issues triaged Scoped and ready for work

Comments

@abhinavrau
Copy link

What did I try?
The example in the README.md

module "address-fe" {
  source  = "terraform-google-modules/address/google"
  version = "3.0.0"

  names  = [ "external-facing-ip"]
  global = true
}

Error I got:
Error creating GlobalAddress: googleapi: Error 400: Invalid value for field 'resource.network': ''. The field must be specified for reserving internal IP Addresses. Please set a valid value for the field and retry the operation., invalid

Expected:

Creation of Global IP Address.

I works as expected with v2.1.1

@morgante morgante added bug Something isn't working P2 high priority issues triaged Scoped and ready for work labels Jul 12, 2021
@cimocimocimo
Copy link

A quick fix is to specify the address_type variable:

module "address-fe" {
  source  = "terraform-google-modules/address/google"
  version = "3.0.0"

  names        = [ "external-facing-ip"]
  global       = true
  address_type = "EXTERNAL"
}

This worked for me, hope it helps you too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working P2 high priority issues triaged Scoped and ready for work
Projects
None yet
Development

No branches or pull requests

3 participants