page_title: "zenml_service_connector Data Source - terraform-provider-zenml" subcategory: "" description: |- Data source for retrieving information about a ZenML service connector.
Use this data source to retrieve information about a specific ZenML service connector.
data "zenml_service_connector" "example" {
name = "my-gcp-connector"
}
output "connector_id" {
value = data.zenml_service_connector.example.id
}
The following arguments are supported:
id
- (Optional) The ID of the service connector to retrieve. Eitherid
orname
must be provided.name
- (Optional) The name of the service connector to retrieve. Eitherid
orname
must be provided.workspace
- (Optional) The workspace ID to filter the service connector 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 service connector.name
- The name of the service connector.type
- The type of the service connector (e.g., "gcp", "aws", "azure", etc.).auth_method
- The authentication method used by the service connector.resource_type
- The type of resource the service connector is connected to (e.g., "s3-bucket", "docker-registry", etc.).resource_id
- The ID of the resource the service connector is connected to.configuration
- A map of configuration key-value pairs for the service connector. Sensitive values are not included.workspace
- The workspace ID this service connector belongs to.labels
- A map of labels associated with this service connector.
Service connectors can be imported using the id
, e.g.
$ terraform import zenml_service_connector.example 12345678-1234-1234-1234-123456789012