Skip to content

Conversation

Ali-Aburub
Copy link
Contributor

@Ali-Aburub Ali-Aburub commented Jun 3, 2025

Conditionally creates billing sink if the billing account is of type resource


Checklist

I applicable, I acknowledge that I have:

  • Read the contributing guide
  • Ran terraform fmt on all modified files
  • Regenerated the relevant README.md files using tools/tfdoc.py
  • Made sure all relevant tests pass

Copy link

google-cla bot commented Jun 3, 2025

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.

@Ali-Aburub Ali-Aburub marked this pull request as ready for review June 4, 2025 05:29
Copy link
Collaborator

@ludoo ludoo left a 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 :)

@ludoo
Copy link
Collaborator

ludoo commented Jun 4, 2025

One more comment: we should have a moved block to transition IAM from the resource to the module, if possible.

@Ali-Aburub
Copy link
Contributor Author

One more comment: we should have a moved block to transition IAM from the resource to the module, if possible.

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

@ludoo
Copy link
Collaborator

ludoo commented Jun 19, 2025

One more comment: we should have a moved block to transition IAM from the resource to the module, if possible.

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

actually no, they should be additive as the assumption is an external billing account is not exclusively managed here

Copy link
Collaborator

@ludoo ludoo left a 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

@Ali-Aburub
Copy link
Contributor Author

@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

@ludoo ludoo enabled auto-merge (squash) July 21, 2025 14:55
@ludoo ludoo merged commit ae6b3ee into GoogleCloudPlatform:master Jul 21, 2025
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants