page_title | subcategory | description |
---|---|---|
zenml_stack_component Data Source - terraform-provider-zenml |
Data source for retrieving information about a ZenML stack component. |
Use this data source to retrieve information about a specific ZenML stack component.
data "zenml_stack_component" "example" {
name = "my-artifact-store"
}
output "component_id" {
value = data.zenml_stack_component.example.id
}
The following arguments are supported:
id
- (Optional) The ID of the stack component to retrieve. Eitherid
orname
must be provided.name
- (Optional) The name of the stack component to retrieve. Eitherid
orname
must be provided.workspace
- (Optional) The workspace ID to filter the component search. If not provided, the default workspace will be used.
In addition to all arguments above, the following attributes are exported:
id
- The ID of the stack component.name
- The name of the stack component.type
- The type of the stack component (e.g., "artifact_store", "orchestrator", etc.).flavor
- The flavor of the stack component (e.g., "local", "gcp", "aws", etc.).configuration
- A map of configuration key-value pairs for the stack component.workspace
- The workspace ID this stack component belongs to.labels
- A map of labels associated with this stack component.connector
- The ID of the service connector associated with this stack component.connector_resource_id
- The ID of the resource the service connector is connected to.
Stack components can be imported using the id
, e.g.
$ terraform import zenml_stack_component.example 12345678-1234-1234-1234-123456789012