From 009788a326b5a0c4d26c5ed9e5238b7d73c2fac9 Mon Sep 17 00:00:00 2001 From: Hamza Tahir Date: Mon, 28 Oct 2024 22:56:08 +0100 Subject: [PATCH] Update data source configurations and outputs for ZenML --- examples/data-sources/main.tf | 4 +++- examples/data-sources/outputs.tf | 9 +++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/examples/data-sources/main.tf b/examples/data-sources/main.tf index 7921c5a..e4c4db9 100644 --- a/examples/data-sources/main.tf +++ b/examples/data-sources/main.tf @@ -14,13 +14,15 @@ provider "zenml" { # Look up an existing stack by name data "zenml_stack" "existing" { - name = "production-stack" + name = "production-stack" + workspace = var.workspace_id } # Look up a stack component data "zenml_stack_component" "artifact_store" { name = "production-artifact-store" workspace = var.workspace_id + type = "artifact_store" } # Look up a service connector diff --git a/examples/data-sources/outputs.tf b/examples/data-sources/outputs.tf index 5e59191..3665a99 100644 --- a/examples/data-sources/outputs.tf +++ b/examples/data-sources/outputs.tf @@ -8,6 +8,11 @@ output "artifact_store_configuration" { sensitive = true } -output "gcp_connector_resource_types" { - value = data.zenml_service_connector.gcp.resource_types +output "gcp_connector_configuration" { + value = data.zenml_service_connector.gcp.configuration + sensitive = true +} + +output "gcp_connector_type" { + value = data.zenml_service_connector.gcp.connector_type } \ No newline at end of file