From eea4642cf2a771e36d9f13afc3a3c1624d431ded Mon Sep 17 00:00:00 2001 From: Maurizio Noseda Pedraglio Date: Fri, 30 Sep 2022 11:07:44 +0200 Subject: [PATCH] applied tfdoc --- .../cloud-operations/quota-monitoring/README.md | 15 ++++++++------- .../cloud-operations/quota-monitoring/main.tf | 2 +- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/blueprints/cloud-operations/quota-monitoring/README.md b/blueprints/cloud-operations/quota-monitoring/README.md index fcfad1e7..adcd89d6 100644 --- a/blueprints/cloud-operations/quota-monitoring/README.md +++ b/blueprints/cloud-operations/quota-monitoring/README.md @@ -42,12 +42,13 @@ Clone this repository or [open it in cloud shell](https://ssh.cloud.google.com/c | name | description | type | required | default | |---|---|:---:|:---:|:---:| -| [project_id](variables.tf#L35) | Project id that references existing project. | string | ✓ | | -| [bundle_path](variables.tf#L17) | Path used to write the intermediate Cloud Function code bundle. | string | | "./bundle.zip" | -| [name](variables.tf#L23) | Arbitrary string used to name created resources. | string | | "quota-monitor" | -| [project_create](variables.tf#L29) | Create project instead ofusing an existing one. | bool | | false | -| [quota_config](variables.tf#L40) | Cloud function configuration. | object({…}) | | {…} | -| [region](variables.tf#L54) | Compute region used in the example. | string | | "europe-west1" | -| [schedule_config](variables.tf#L60) | Schedule timer configuration in crontab format. | string | | "0 * * * *" | +| [project_id](variables.tf#L41) | Project id that references existing project. | string | ✓ | | +| [alert_create](variables.tf#L17) | Enables the creation of a sample monitoring alert, false by default. | bool | | false | +| [bundle_path](variables.tf#L23) | Path used to write the intermediate Cloud Function code bundle. | string | | "./bundle.zip" | +| [name](variables.tf#L29) | Arbitrary string used to name created resources. | string | | "quota-monitor" | +| [project_create](variables.tf#L35) | Create project instead of using an existing one. | bool | | false | +| [quota_config](variables.tf#L46) | Cloud function configuration. | object({…}) | | {…} | +| [region](variables.tf#L60) | Compute region used in the example. | string | | "europe-west1" | +| [schedule_config](variables.tf#L66) | Schedule timer configuration in crontab format. | string | | "0 * * * *" | diff --git a/blueprints/cloud-operations/quota-monitoring/main.tf b/blueprints/cloud-operations/quota-monitoring/main.tf index 674482c8..13804ba9 100644 --- a/blueprints/cloud-operations/quota-monitoring/main.tf +++ b/blueprints/cloud-operations/quota-monitoring/main.tf @@ -108,7 +108,7 @@ resource "google_project_iam_member" "quota_viewer" { resource "google_monitoring_alert_policy" "alert_policy" { - count = var.alert_create ? 1 : 0 + count = var.alert_create ? 1 : 0 project = module.project.project_id display_name = "Quota monitor" combiner = "OR"