From c0383ce93a1b3c79675871325ebb8a10d03dcbdb Mon Sep 17 00:00:00 2001 From: Modular Magician Date: Wed, 2 Mar 2022 16:57:48 +0000 Subject: [PATCH] support force delete consumer quota override (#5753) Signed-off-by: Modular Magician --- .changelog/5753.txt | 3 +++ ...sage_consumer_quota_override.html.markdown | 24 +++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 .changelog/5753.txt diff --git a/.changelog/5753.txt b/.changelog/5753.txt new file mode 100644 index 00000000000..46ff43a1c24 --- /dev/null +++ b/.changelog/5753.txt @@ -0,0 +1,3 @@ +```release-note:enhancement +service_usage: supported `force` behavior for deleting consumer quota override. +``` diff --git a/website/docs/r/service_usage_consumer_quota_override.html.markdown b/website/docs/r/service_usage_consumer_quota_override.html.markdown index b53b75b3360..3133d540682 100644 --- a/website/docs/r/service_usage_consumer_quota_override.html.markdown +++ b/website/docs/r/service_usage_consumer_quota_override.html.markdown @@ -80,6 +80,30 @@ resource "google_service_usage_consumer_quota_override" "override" { force = true } ``` +## Example Usage - Consumer Quota Override Custom Dimension + + +```hcl +resource "google_project" "my_project" { + provider = google-beta + name = "tf-test-project" + project_id = "quota" + org_id = "123456789" +} + +resource "google_service_usage_consumer_quota_override" "override" { + provider = google-beta + project = google_project.my_project.project_id + service = "libraryagent.googleapis.com" + metric = urlencode("libraryagent.googleapis.com/borrows") + limit = urlencode("/author/project") + override_value = "1" + force = true + dimensions = { + author = "larry" + } +} +``` ## Argument Reference