Add budget to k8s-infra-ii-sandbox#1975
Conversation
|
|
||
| amount { | ||
| specified_amount { | ||
| units = "1000" |
There was a problem hiding this comment.
It's purely random. Not sure if there is a requirement for this.
There was a problem hiding this comment.
What are "units" ? How do we measure our usage of "units"?
:)
There was a problem hiding this comment.
Units represents the amount assigned to the project. It should be part of the public billing report once you start consume resources.
|
/assign @spiffxp |
Add a defined budget to `k8s-infra-ii-sandbox` but also use the project to experiment GCP budgets. Ref: kubernetes#1375 Signed-off-by: Arnaud Meukam <ameukam@gmail.com>
f760c69 to
3e70137
Compare
spiffxp
left a comment
There was a problem hiding this comment.
/approve
/lgtm
/hold
when ready to deploy
|
Edit: Look like I need the billing service and the role |
|
After some reading of the IAM roles for billing I'll need the role : at the organization level. I was expecting Org admins be able to do that but it's not the case. |
|
I'm re-running It looks like it's going to undo some partial changes deployed from this PR I'll have a followup PR to adjust the organization.admin role appropriately to allow this PR to deploy |
|
#2010 should hopefully give the right billing permissions to org admins Does this ensure the ii team doesn't accidentally need billing permissions to manage their project with terraform? Should this be storing state in a different bucket? |
@spiffxp The budget is supposed to cover only this project. Even if the budget is completely consumed I don't think they will be able to increase the budget limit. Those permissions are at the org. level. Ultimately, we should move the billing budgets to a dedicated state but for this sandbox I prefer to leave it here. Can move it as a followup if you want. |
|
I tried again and got the same error : #1975 (comment).
I can't directly use Terraform with my account for this. We could use a service account but I don't think we want this kind of complexity right now. |
|
Uhhh... yeah, I was just browsing the changelog for the terraform google provider
😅 |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ameukam The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
I'll reopen a new PR once we can do terraform apply with postsubmits. |
|
@ameukam: Closed this PR. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Add a defined budget to
k8s-infra-ii-sandboxbut also use the projectto experiment GCP budgets.
Ref: #1375
Signed-off-by: Arnaud Meukam ameukam@gmail.com