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

I have an error when I launch the terraform apply #4

Open
mbiombani opened this issue May 17, 2022 · 6 comments
Open

I have an error when I launch the terraform apply #4

mbiombani opened this issue May 17, 2022 · 6 comments

Comments

@mbiombani
Copy link

│ Error: Invalid value for network: project: required field is not set

│ with google_compute_firewall.rules,
│ on main.tf line 19, in resource "google_compute_firewall" "port_rules":
│ 19: resource "google_compute_firewall" "port_rules" {



│ Error: project: required field is not set

│ with google_compute_instance.kafka_vm_instance,
│ on main.tf line 35, in resource "google_compute_instance" "kafka_vm_instance":
│ 35: resource "google_compute_instance" "kafka_vm_instance" {



│ Error: project: required field is not set

│ with google_compute_instance.airflow_vm_instance,
│ on main.tf line 56, in resource "google_compute_instance" "airflow_vm_instance":
│ 56: resource "google_compute_instance" "airflow_vm_instance" {



│ Error: project: required field is not set

│ with google_storage_bucket.bucket,
│ on main.tf line 75, in resource "google_storage_bucket" "bucket":
│ 75: resource "google_storage_bucket" "bucket" {



│ Error: project: required field is not set

│ with google_dataproc_cluster.mulitnode_spark_cluster,
│ on main.tf line 93, in resource "google_dataproc_cluster" "mulitnode_spark_cluster":
│ 93: resource "google_dataproc_cluster" "mulitnode_spark_cluster" {



│ Error: project: required field is not set

│ with google_bigquery_dataset.stg_dataset,
│ on main.tf line 139, in resource "google_bigquery_dataset" "stg_dataset":
│ 139: resource "google_bigquery_dataset" "stg_dataset" {



│ Error: project: required field is not set

│ with google_bigquery_dataset.prod_dataset,
│ on main.tf line 146, in resource "google_bigquery_dataset" "prod_dataset":
│ 146: resource "google_bigquery_dataset" "prod_dataset" {

@ankurchavda
Copy link
Owner

You must be getting a prompt to enter project and bucket values when running terraform plan and terraform apply. Are you setting up these values?

@mbiombani
Copy link
Author

yes

@mbiombani
Copy link
Author

it works with this command

terraform apply -var="project="

@mbiombani
Copy link
Author

can I have your dashboard please

@ankurchavda
Copy link
Owner

It should work without -var="project=" also, not sure what's wrong. But glad it's working for you. You can check the dashboard here. Please don't query a lot, I am not sure how Bigquery will charge for this if any haha.

@mbiombani
Copy link
Author

It should work without -var="project=" also, not sure what's wrong. But glad it's working for you. You can check the dashboard here. Please don't query a lot, I am not sure how Bigquery will charge for this if any haha.

oh I thought it was a json or xml file for dashboard

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants