-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
google_billing_budget does not support last_period_amount #5245
google_billing_budget does not support last_period_amount #5245
Comments
The only workaround I can think of would be to add a dummy field (probably a Computed one so that people don't accidentally set it) inside the object that we eventually deprecate. The other option would be to make a boolean instead of a nested block, but that would require a config change for users that eventually migrate from the boolean to the block, so I'm more cautious about something like that. |
For what it's worth, we do have precedent for the boolean solution: https://github.com/terraform-providers/terraform-provider-google/blob/master/google/resource_bigtable_app_profile.go#L69 |
I'm looking at adding this functionality at the moment. Just want to do some more testing before submitting a PR. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks! |
Community Note
Description
Feedback from @techisland2k19 in hashicorp/terraform-provider-google-beta#1428:
The reason is in the original PR in magic modules: GoogleCloudPlatform/magic-modules#2734
Specifically @danawillow's comment:
If there is a workaround I am happy to add it. @danawillow do you have any suggestions?
I can also inquire about when the block will have more values as well internally. If you see the doc in https://cloud.google.com/billing/docs/reference/budget/rest/v1beta1/billingAccounts.budgets#LastPeriodAmount it mentions:
New or Affected Resource(s)
Potential Terraform Configuration
References
The text was updated successfully, but these errors were encountered: