page_title | subcategory | description |
---|---|---|
zenml_stack Data Source - terraform-provider-zenml |
Data source for retrieving information about a ZenML stack. |
Use this data source to retrieve information about a specific ZenML stack.
data "zenml_stack" "example" {
name = "my-stack"
}
output "stack_id" {
value = data.zenml_stack.example.id
}
The following arguments are supported:
id
- (Optional) The ID of the stack to retrieve. Eitherid
orname
must be provided.name
- (Optional) The name of the stack to retrieve. Eitherid
orname
must be provided.
In addition to all arguments above, the following attributes are exported:
id
- The ID of the stack.name
- The name of the stack.components
- A map of component types to component IDs for this stack.labels
- A map of labels associated with this stack.
Stacks can be imported using the id
, e.g.
$ terraform import zenml_stack.example 12345678-1234-1234-1234-123456789012