-
Notifications
You must be signed in to change notification settings - Fork 543
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
fix: Change budget module: Accept list of project numbers instead of … #550
Conversation
Thanks for the PR! 🚀 |
/gcbrun |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately this causes an error:
Error: Invalid for_each argument
on ../../../modules/budget/main.tf line 33, in data "google_project" "project":
33: for_each = toset(var.projects)
The "for_each" value depends on resource attributes that cannot be determined
until apply, so Terraform cannot predict how many instances will be created.
To work around this, use the -target argument to first apply only the
resources that the for_each depends on.
@morgante thanks for identifying the error and sharing so I could address the issue. I had some issues setting up the integration tests which I've since resolved. There are still a few tests that don't seem to run properly with my org but overall I think I'm in a better place to catch these issues myself. |
Thanks @switj, this looks good and I think the test failure is ephemeral. |
/gcbrun |
1 similar comment
/gcbrun |
hiya 👋 @morgante bumping this PR. I'm happy to rework the PR or spend additional time looking at ephemeral test failures if that makes the review easier. If there is anything I can help let me know. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the error is unrelated.
…project ID #544
Hello 👋 this is my first PR.
I've reviewed the contributing guidelines but if I've missed anything please direct me at the relevant doc/section so I can fix the issue.
Fixes #544