Skip to content

Commit

Permalink
support force delete consumer quota override (#5753) (#11205)
Browse files Browse the repository at this point in the history
Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician authored Mar 2, 2022
1 parent 0fb49e7 commit ffa5a9c
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .changelog/5753.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
service_usage: supported `force` behavior for deleting consumer quota override.
```
24 changes: 24 additions & 0 deletions website/docs/r/service_usage_consumer_quota_override.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit ffa5a9c

Please sign in to comment.