Skip to content

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

Description

@mbiombani

│ 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" {
│

Activity

  1. ankurchavda commented on May 17, 2022

    @ankurchavda
    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?

  2. mbiombani commented on May 17, 2022

    @mbiombani
    Author

    yes

  3. mbiombani commented on May 17, 2022

    @mbiombani
    Author

    it works with this command

    terraform apply -var="project="

  4. mbiombani commented on May 17, 2022

    @mbiombani
    Author

    can I have your dashboard please

  5. ankurchavda commented on May 18, 2022

    @ankurchavda
    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.

  6. mbiombani commented on May 18, 2022

    @mbiombani
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions