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:
- Created 5 years ago
- Comments:10 (6 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.This is now fixed.