can't disable managed Prometheus, logging and monitoring on by running terraform once
Expected behavior
By setting the logging_service and monitoring to "none" it is expected that Cloud Monitoring, Cloud logging and managed Prometheus are disabled.
Observed behavior
Logging and Monitoring are disabled, but the managed Prometheus is enabled.
In order to disable everything I have to apply my terraform first with the following values:
monitoring_service = "none"
logging_service = "none"
This will disable Cloud Monitoring and Logging.
After that I have to set
cluster_telemetry_type = "DISABLED" in order the dynamic block "monitoring_config" to be executed and the value of
monitoring_enable_managed_prometheus = false to be applied
TL;DR
can't disable managed Prometheus, logging and monitoring on by running terraform once
Expected behavior
By setting the logging_service and monitoring to "none" it is expected that Cloud Monitoring, Cloud logging and managed Prometheus are disabled.
Observed behavior
Logging and Monitoring are disabled, but the managed Prometheus is enabled. In order to disable everything I have to apply my terraform first with the following values: monitoring_service = "none" logging_service = "none" This will disable Cloud Monitoring and Logging. After that I have to set cluster_telemetry_type = "DISABLED" in order the dynamic block "monitoring_config" to be executed and the value of monitoring_enable_managed_prometheus = false to be applied
I've tried different combinations: monitoring_service = null logging_service = null cluster_telemetry_type = "DISABLED"
Creates the cluster, but with logging and monitoring enabled.
monitoring_service = "none" logging_service = "none" cluster_telemetry_type = "DISABLED" returns API ERROR:
google_container_cluster.primary: Creating... ╷ │ Error: googleapi: Error 400: Cannot specify logging_config or monitoring_config together with cluster_telemetry. │ Details: │ [ │ { │ "@type": "type.googleapis.com/google.rpc.RequestInfo", │ "requestId": "0x569e9161f61ca356" │ } │ ] │ , badRequest │ │ with google_container_cluster.primary, │ on cluster.tf line 22, in resource "google_container_cluster" "primary": │ 22: resource "google_container_cluster" "primary" { │
Terraform Configuration
Terraform Version
Additional information
No response