terraform-google-modules / terraform-google-slo

Creates SLOs on Google Cloud from custom Stackdriver metrics capability to export SLOs to Google Cloud services and other systems
https://registry.terraform.io/modules/terraform-google-modules/slo/google
Apache License 2.0
63 stars 29 forks source link

[WIP] Update main.tf #11

Closed bkamin29 closed 4 years ago

bkamin29 commented 4 years ago

I have this error when using terraform-google-slo and terraform-google-scheduled-function v1.3

Error: Inconsistent conditional result types

  on .terraform/modules/slo_generator.slo-hp-fr-availability.slo_cloud_function/outputs.tf line 23, in output "scheduler_job":
  23:   value       = var.scheduler_job == null ? google_cloud_scheduler_job.job : var.scheduler_job
    |----------------
    | google_cloud_scheduler_job.job is tuple with 1 element
    | var.scheduler_job is null

The true and false result expressions must have consistent types. The given
expressions are tuple and object, respectively.

It's ok if why use terraform-google-scheduled-function v1.4