page_title | subcategory | description |
---|---|---|
zenml_stack_component Resource - terraform-provider-zenml |
Manages a ZenML stack component. |
Manages a ZenML stack component, which represents a specific piece of infrastructure or service used in a ZenML stack.
resource "zenml_stack_component" "artifact_store" {
name = "my-artifact-store"
type = "artifact_store"
flavor = "gcp"
workspace = "default"
configuration = {
path = "gs://my-bucket/artifacts"
}
# Optional: Connect to a service connector
connector_id = "connector-uuid"
connector_resource_id = "resource-id"
labels = {
environment = "production"
}
}
name
- (Required) The name of the stack component.type
- (Required) The type of the stack component (e.g., "artifact_store", "orchestrator"). Must be one of the valid component types supported by ZenML.flavor
- (Required) The flavor of the stack component (e.g., "local", "gcp", "aws").workspace
- (Required, Forces new resource) The name of the workspace this component belongs to.configuration
- (Optional, Sensitive) A map of configuration key-value pairs for the component.connector_id
- (Optional) The ID of the service connector to use with this component. Must be specified together withconnector_resource_id
.connector_resource_id
- (Optional) The ID of the connector resource to use with this component. Must be specified together withconnector_id
.labels
- (Optional) A map of labels to associate with the component.
-> Note When using service connectors, both connector_id
and connector_resource_id
must be specified together. Specifying only one will result in an error.
In addition to all arguments above, the following attributes are exported:
id
- The ID of the stack component.
Stack components can be imported using the id
, e.g.
$ terraform import zenml_stack_component.example 12345678-1234-1234-1234-123456789012