/** * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ variable "organization_id" { description = "The organization id for the associated services" } variable "billing_account" { description = "The ID of the billing account to associate this project with" } 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 "prefix" { description = "Customer name to use as prefix for monitoring project" default = "" } # TODO: support folder instead of a list of projects? variable "monitored_projects_list" { type = list(string) description = "ID of the projects to be monitored (where limits and quotas data will be pulled)" } variable "schedule_cron" { description = "Cron format schedule to run the Cloud Function. Default is every 5 minutes." default = "*/5 * * * *" } variable "project_monitoring_services" { description = "Service APIs enabled in the monitoring project if it will be created." default = [ "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", "serviceusage.googleapis.com", ] } variable "region" { description = "Region used to deploy the cloud functions and scheduler" default = "europe-west1" }