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

fix: Change budget module: Accept list of project numbers instead of … #550

Merged
merged 2 commits into from
Mar 4, 2021

Conversation

switj
Copy link
Contributor

@switj switj commented Feb 23, 2021

…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

@switj switj requested a review from a team as a code owner February 23, 2021 20:10
@comment-bot-dev
Copy link

comment-bot-dev commented Feb 23, 2021

Thanks for the PR! 🚀
✅ Lint checks have passed.

@morgante
Copy link
Contributor

/gcbrun

Copy link
Contributor

@morgante morgante left a 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.

@switj
Copy link
Contributor Author

switj commented Feb 24, 2021

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

@morgante
Copy link
Contributor

Thanks @switj, this looks good and I think the test failure is ephemeral.

@morgante
Copy link
Contributor

/gcbrun

1 similar comment
@morgante
Copy link
Contributor

/gcbrun

@switj
Copy link
Contributor Author

switj commented Mar 4, 2021

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.

Copy link
Contributor

@morgante morgante left a 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.

@morgante morgante merged commit 5c715d8 into terraform-google-modules:master Mar 4, 2021
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

Successfully merging this pull request may close these issues.

Change budget module: Accept list of project numbers instead of project ID
3 participants