-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Conditionally creates billing sink if the billing account is of type resource #3130
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
Conditionally creates billing sink if the billing account is of type resource #3130
Conversation
…billing account resides out of org
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
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.
Nice PR, left a couple minor comments then once checks pass it's good to go. Thanks :)
One more comment: we should have a |
Currently the billing IAM assignments are additive. With the refactoring I did, I changed it to be authoritative since these roles will not be touched on later stages. Do you agree with this change? @ludoo |
…pe-billing-account
actually no, they should be additive as the assumption is an external billing account is not exclusively managed here |
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.
IAM needs to be additive, unless we also add an option in the billing account variable to control this
@ludoo Thank you Ludo for the guidance. I changed the IAM bindings to be additive, with processing logic implemented in the locals block. I also introduced a new option to the billing account variable which explicitly determines the creation of a log bucket, log sink, and IAM log writer assignment |
…pe-billing-account
…pe-billing-account
…pe-billing-account
…pe-billing-account
Conditionally creates billing sink if the billing account is of type resource
Checklist
I applicable, I acknowledge that I have:
terraform fmt
on all modified filestools/tfdoc.py