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

google_compute_network routing mode - unknown key #1117

Closed
rebelpacket opened this issue Feb 22, 2018 · 3 comments
Closed

google_compute_network routing mode - unknown key #1117

rebelpacket opened this issue Feb 22, 2018 · 3 comments

Comments

@rebelpacket
Copy link

Howdy Y'all!

Attempting to build some custom VPC networks for a test environment using Terraform, and running into a bit of a snag trying to specify the "GLOBAL" routing mode per the documentation.

Terraform Version

$ terraform -v
Terraform v0.11.3
+ provider.google v1.4.0

Affected Resource(s)

  • google_compute_network

Terraform Configuration Files

provider "google" {
    credentials = "REDACTED"
    project = "POC"
    region = "us-east1-b"
}
#VPC Network for Google
resource "google_compute_network" "default" {
  name = "gcp-poc-vpc"
  description = "POC VPC"
  auto_create_subnetworks = "false"
  routing_mode = "GLOBAL"
}

Expected Behavior

Terraform creates my VPC network with GLOBAL routing enabled.

Actual Behavior

Terraform fails both plan and validation with:
Error: google_compute_network.default: : invalid or unknown key: routing_mode

Steps to Reproduce

Please list the steps required to reproduce the issue, for example:

  1. terraform validate
  2. terraform plan

Important Factoids

None. Brand new Google project, untouched by the hands of eager Operations engineers.

References

Saw the following commits related to routingMode enhancements that look like they should work, but have not been able to figure out why my configuration is not:

@rebelpacket rebelpacket changed the title Compute Network Routing Mode - google_compute_network routing mode - unknown key Feb 22, 2018
@danawillow
Copy link
Contributor

Hey @apearsall! routing_mode was added in version 1.5.0, and it looks like you're running 1.4.0. You'll want to upgrade your provider: https://www.terraform.io/docs/configuration/providers.html#provider-versions. Give that a try and let me know if it helps!

@rebelpacket
Copy link
Author

Well, that is rather embarrassing! Specified version 1.5.0 or greater, and all is right with the world now. Thanks for the quick help @danawillow!!

@ghost
Copy link

ghost commented Mar 29, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks!

@ghost ghost locked and limited conversation to collaborators Mar 29, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants