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

terraform, gcp: use dynamic budgets based on last month #4415

Merged
merged 4 commits into from
Jul 11, 2024

Conversation

consideRatio
Copy link
Member

@consideRatio consideRatio commented Jul 11, 2024

Applied to all gcp projects!

Apparently terraform fails to migrate a budget with a fixed number to a
budget referencing the last month, but recreating the budget worked fine
though. By renaming this resource we accomplished that.

This is what was shown repeatedly after each terraform apply without
forcing the re-creation:

```
Terraform will perform the following actions:

  # google_billing_budget.budget[0] will be updated in-place
  ~ resource "google_billing_budget" "budget" {
        id              = "censored"
        name            = "censored"
        # (3 unchanged attributes hidden)

      ~ amount {
          ~ last_period_amount = false -> true

          - specified_amount {
              - currency_code = "USD" -> null
              - nanos         = 0 -> null
                # (1 unchanged attribute hidden)
            }
        }

        # (4 unchanged blocks hidden)
    }

Plan: 0 to add, 1 to change, 0 to destroy.
````
@consideRatio consideRatio merged commit 61d84bf into 2i2c-org:main Jul 11, 2024
5 checks passed
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.

1 participant