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

google_billing_budget in v3.52 shows diff after apply #8228

Closed
Assignees
Labels

Comments

@chiokejjones
Copy link

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request.
  • Please do not leave +1 or me too comments, they generate extra noise for issue followers and do not help prioritize the request.
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment.
  • If an issue is assigned to the modular-magician user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If an issue is assigned to a user, that user is claiming responsibility for the issue. If an issue is assigned to hashibot, a community member has claimed the issue already.

Terraform Version

0.13.5

Affected Resource(s)

google_billing_budget

Terraform Configuration Files

module "budget" {
  source                 = "terraform-google-modules/project-factory/google//modules/budget"
  version                = "~> 9.2"
  billing_account        = var.billing_account_id
  projects               = ["<project_number>"]
  display_name           = "testing-budget-${var.billing_budget}"
  amount                 = var.billing_budget
  alert_spent_percents   = var.billing_thresholds
  credit_types_treatment = var.billing_include_credits ? "INCLUDE_ALL_CREDITS" : "EXCLUDE_ALL_CREDITS"
  alert_pubsub_topic     = "projects/<project_id>/topics/${google_pubsub_topic.budget.name}"
}

Debug Output

Panic Output

Expected Behavior

There should be no changes to the billing resources.

Actual Behavior

Plan wants to add all_upates_rule and remove currency_code. Neither of which are set in the module or are available parameters.

  # module.budget.google_billing_budget.budget[0] will be updated in-place
  ~ resource "google_billing_budget" "budget" {
        billing_account = "<billing_account>"
        display_name    = "testing-budget"
        id              = "billingAccounts/<billing_account>/budgets/<budget_id>"
        name            = "billingAccounts/<billing_account>/budgets/<budget_id>"

        all_updates_rule {
            disable_default_iam_recipients   = false
            monitoring_notification_channels = []
            pubsub_topic                     = "projects/<project_id>/topics/budget-topic"
            schema_version                   = "1.0"
        }

      ~ amount {
            last_period_amount = false

          ~ specified_amount {
              - currency_code = "USD" -> null
                nanos         = 0
                units         = "500"
            }
        }

        budget_filter {
            credit_types           = []
            credit_types_treatment = "EXCLUDE_ALL_CREDITS"
            labels                 = {}
            projects               = [
                "projects/<project_number>",
            ]
            services               = []
            subaccounts            = []
        }

        threshold_rules {
            spend_basis       = "CURRENT_SPEND"
            threshold_percent = 0.5
        }
        threshold_rules {
            spend_basis       = "CURRENT_SPEND"
            threshold_percent = 0.75
        }
        threshold_rules {
            spend_basis       = "CURRENT_SPEND"
            threshold_percent = 0.9
        }
        threshold_rules {
            spend_basis       = "CURRENT_SPEND"
            threshold_percent = 1
        }
    }

Plan: 0 to add, 1 to change, 0 to destroy.

Steps to Reproduce

  1. terraform apply
  2. Change applied.
  3. terraform plan
  4. TF stills shows 1 to change

Important Factoids

References

  • #0000
@ghost
Copy link

ghost commented Feb 21, 2021

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!

@ghost ghost locked as resolved and limited conversation to collaborators Feb 21, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.