F5Networks / terraform-gcp-bigip-module

Terraform module for Deploying BIG-IP in GCP
Apache License 2.0
9 stars 13 forks source link

Failed to retrieve project, pid: #45

Open apuitbd opened 2 months ago

apuitbd commented 2 months ago

Terraform is unable to generate the plan due to the following error:

Error: Failed to retrieve project, pid: , err: project: required field is not set │ │ with module.bigip[1].google_compute_instance.f5vm01, │ on .terraform/modules/bigip/main.tf line 142, in resource "google_compute_instance" "f5vm01": │ 142: resource "google_compute_instance" "f5vm01" {

The "project" argument appears not defined in the resource "google_compute_instance" definition.

pgouband commented 2 months ago

Hi @apuitbd,

Can you share more details like the Terraform main file, the number of NIC?

apuitbd commented 2 months ago

Hi @pgouband,

I have tried the following "examples/bigip_gcp_2nic_deploy/main.tf". By the way, I am looking for HA active/active deployment module with DO but couldn't find it, if you know, can you pls refer it?

pgouband commented 2 months ago

hi @apuitbd,

Project field is optional parameter, if we not provide it will pick of project field of provider: https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/compute_instance#project