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

Failed to retrieve project, pid: #45

Open
apuitbd opened this issue Aug 20, 2024 · 3 comments
Open

Failed to retrieve project, pid: #45

apuitbd opened this issue Aug 20, 2024 · 3 comments
Labels
question Further information is requested

Comments

@apuitbd
Copy link

apuitbd commented Aug 20, 2024

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
Copy link
Collaborator

Hi @apuitbd,

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

@apuitbd
Copy link
Author

apuitbd commented Aug 26, 2024

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
Copy link
Collaborator

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

@pgouband pgouband added the question Further information is requested label Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants