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

Project not defined #10

Open
jkgenser opened this issue Oct 30, 2024 · 2 comments
Open

Project not defined #10

jkgenser opened this issue Oct 30, 2024 · 2 comments

Comments

@jkgenser
Copy link

I've tried running your project, but get a bunch of errors indicating that project is not defined. Does this need to be passed in as a far? I used a region like "us-central-1"

Is there supposed to be possibly a fully qualified reigon?

@jkgenser
Copy link
Author

I was able to fix this by adding the following. In other projects I had specified project differently and it was actually and input variable. Maybe adding directions to the repo to indicate that default project should be set on the provider might help other people not get stuck :)

provider "google" {
  project = "<PROJECT_ID>"
}

@jlucktay
Copy link
Owner

jlucktay commented Nov 4, 2024

Hi @jkgenser :) This is a great note for some docs that I should add, you're right.
Per this set of best practices, I don't define the provider block in the reusable module portion of this repo.
As with your code block in the second comment, I set the project on the Google Cloud provider, in my (private) root module directory that calls this module.

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