Improve net dashboard variables
This commit is contained in:
parent
5692f07ee5
commit
21152c3c45
|
@ -64,3 +64,22 @@ In a future release, we could support:
|
||||||
- Google managed VPCs that are peered with PSA (such as Cloud SQL or Memorystore)
|
- Google managed VPCs that are peered with PSA (such as Cloud SQL or Memorystore)
|
||||||
|
|
||||||
If you are interested in this and/or would like to contribute, please contact legranda@google.com.
|
If you are interested in this and/or would like to contribute, please contact legranda@google.com.
|
||||||
|
|
||||||
|
<!-- BEGIN TFDOC -->
|
||||||
|
|
||||||
|
## Variables
|
||||||
|
|
||||||
|
| name | description | type | required | default |
|
||||||
|
|---|---|:---:|:---:|:---:|
|
||||||
|
| [billing_account](variables.tf#L21) | The ID of the billing account to associate this project with | <code></code> | ✓ | |
|
||||||
|
| [monitored_projects_list](variables.tf#L34) | ID of the projects to be monitored (where limits and quotas data will be pulled) | <code>list(string)</code> | ✓ | |
|
||||||
|
| [organization_id](variables.tf#L17) | The organization id for the associated services | <code></code> | ✓ | |
|
||||||
|
| [prefix](variables.tf#L30) | Customer name to use as prefix for monitoring project | <code></code> | ✓ | |
|
||||||
|
| [cf_version](variables.tf#L75) | Cloud Function version 2nd Gen or 1st Gen. Possible options: 'V1' or 'V2'.Use CFv2 if your Cloud Function timeouts after 9 minutes. By default it is using CFv1. | <code></code> | | <code>V1</code> |
|
||||||
|
| [monitored_folders_list](variables.tf#L39) | ID of the projects to be monitored (where limits and quotas data will be pulled) | <code>list(string)</code> | | <code>[]</code> |
|
||||||
|
| [monitoring_project_id](variables.tf#L25) | Monitoring project where the dashboard will be created and the solution deployed; a project will be created if set to empty string | <code></code> | | |
|
||||||
|
| [project_monitoring_services](variables.tf#L50) | Service APIs enabled in the monitoring project if it will be created. | <code></code> | | <code title="[ "artifactregistry.googleapis.com", "cloudasset.googleapis.com", "cloudbilling.googleapis.com", "cloudbuild.googleapis.com", "cloudresourcemanager.googleapis.com", "cloudscheduler.googleapis.com", "compute.googleapis.com", "cloudfunctions.googleapis.com", "iam.googleapis.com", "iamcredentials.googleapis.com", "logging.googleapis.com", "monitoring.googleapis.com", "run.googleapis.com", "serviceusage.googleapis.com" ]">[…]</code> |
|
||||||
|
| [region](variables.tf#L70) | Region used to deploy the cloud functions and scheduler | <code></code> | | <code>europe-west1</code> |
|
||||||
|
| [schedule_cron](variables.tf#L45) | Cron format schedule to run the Cloud Function. Default is every 5 minutes. | <code></code> | | <code>*/10 * * * *</code> |
|
||||||
|
|
||||||
|
<!-- END TFDOC -->
|
||||||
|
|
|
@ -14,27 +14,17 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
variable "organization_id" {
|
|
||||||
description = "The organization id for the associated services"
|
|
||||||
}
|
|
||||||
|
|
||||||
variable "billing_account" {
|
variable "billing_account" {
|
||||||
description = "The ID of the billing account to associate this project with"
|
description = "The ID of the billing account to associate this project with"
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "monitoring_project_id" {
|
variable "cf_version" {
|
||||||
description = "Monitoring project where the dashboard will be created and the solution deployed; a project will be created if set to empty string"
|
description = "Cloud Function version 2nd Gen or 1st Gen. Possible options: 'V1' or 'V2'.Use CFv2 if your Cloud Function timeouts after 9 minutes. By default it is using CFv1."
|
||||||
default = ""
|
default = "V1"
|
||||||
}
|
validation {
|
||||||
|
condition = var.cf_version == "V1" || var.cf_version == "v2"
|
||||||
variable "prefix" {
|
error_message = "The value of cf_version must be either V1 or V2."
|
||||||
description = "Customer name to use as prefix for monitoring project"
|
}
|
||||||
default = ""
|
|
||||||
}
|
|
||||||
|
|
||||||
variable "monitored_projects_list" {
|
|
||||||
type = list(string)
|
|
||||||
description = "ID of the projects to be monitored (where limits and quotas data will be pulled)"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "monitored_folders_list" {
|
variable "monitored_folders_list" {
|
||||||
|
@ -43,9 +33,23 @@ variable "monitored_folders_list" {
|
||||||
default = []
|
default = []
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "schedule_cron" {
|
variable "monitored_projects_list" {
|
||||||
description = "Cron format schedule to run the Cloud Function. Default is every 5 minutes."
|
type = list(string)
|
||||||
default = "*/10 * * * *"
|
description = "ID of the projects to be monitored (where limits and quotas data will be pulled)"
|
||||||
|
}
|
||||||
|
|
||||||
|
variable "monitoring_project_id" {
|
||||||
|
description = "Monitoring project where the dashboard will be created and the solution deployed; a project will be created if set to empty string"
|
||||||
|
default = ""
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
variable "organization_id" {
|
||||||
|
description = "The organization id for the associated services"
|
||||||
|
}
|
||||||
|
|
||||||
|
variable "prefix" {
|
||||||
|
description = "Customer name to use as prefix for monitoring project"
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "project_monitoring_services" {
|
variable "project_monitoring_services" {
|
||||||
|
@ -72,7 +76,8 @@ variable "region" {
|
||||||
description = "Region used to deploy the cloud functions and scheduler"
|
description = "Region used to deploy the cloud functions and scheduler"
|
||||||
default = "europe-west1"
|
default = "europe-west1"
|
||||||
}
|
}
|
||||||
variable "cf_version" {
|
|
||||||
description = "Cloud Function version 2nd Gen or 1st Gen. Possible options: 'V1' or 'V2'.Use CFv2 if your Cloud Function timeouts after 9 minutes. By default it is using CFv1."
|
variable "schedule_cron" {
|
||||||
default = "V1"
|
description = "Cron format schedule to run the Cloud Function. Default is every 5 minutes."
|
||||||
}
|
default = "*/10 * * * *"
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue