question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

project: required field is not set

See original GitHub issue

@lukehoban I am new to Pulumi and I have been trying to play around with it but nothing seems to work. What am I doing wrong here? I just wanted to create a bucket but I keep getting the error project: required field is not set. I even tried setting the gcp.config.project=PROJECT_NAME but even that didnt work.

How can I debug issues like these?

const gcp = require('@pulumi/gcp');

const bucket = new gcp.storage.Bucket('pulumi-demo');

// Stack exports
exports.bucketName = bucket.bucket;
Diagnostics:
  gcp:storage:Bucket: pulumi-demo
    error: Plan apply failed: creating urn:pulumi:pulumi-demo-dev::pulumi-demo::gcp:storage/bucket:Bucket::pulumi-demo: project: required field is not set

    error: update failed

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
lukehobancommented, Jun 23, 2018

You can set this via config with pulumi config set gcp:project. I’ll leave this issue open to track how we can make sure the error messages and/or documentation are clearer as this has been a common tripping point.

0reactions
pgavlincommented, Sep 6, 2018

This is now fixed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Terraform/GCP Error: project: required field is not set
Namely that the provider project should be set, i.e.: provider "google" { project = "..." } You don't include your provider config but,...
Read more >
project: required field is not set on google_compute_network ...
I'm facing an issue when trying to create GCP network resource! by the documentation it seems all required parameters are provided!
Read more >
Error: project: required field is not set - HashiCorp Discuss
I'm trying to complete a well overdue upgrade from Terraform v0.13.6 to v0.14.8 and run into an error that I can't get past....
Read more >
Enabling monitoring results in a Terraform error when ... - GitLab
Error: project: required field is not set on /terraform_data/modules/webapp.uptime_monitoring/locals.tf line 5, in data "google_project" ...
Read more >
hashicorp-terraform/Lobby - Gitter
Yet somehow, another .tf file in the same module (same directory) gives me an error saying project: required field is not set
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found