Skip to content

Commit

Permalink
Update data source configurations and outputs for ZenML
Browse files Browse the repository at this point in the history
  • Loading branch information
htahir1 committed Oct 28, 2024
1 parent ee67763 commit 009788a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
4 changes: 3 additions & 1 deletion examples/data-sources/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 7 additions & 2 deletions examples/data-sources/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 009788a

Please sign in to comment.