# workspace_id,name
terraform import prefect_work_pool.example 00000000-0000-0000-0000-000000000000,kubernetes-work-pool
# name only
terraform import prefect_work_pool.example kubernetes-work-pool
The reason for adding this is that the provider makes workspace_id optional. This makes sense for use cases where an operator does not want the provider to be tied to a specific workspace (eg. it has account-level permissions and scope). However, in the previous implementation, an import would fail if the provider was not configured with a workspace_id. This change offers an optional import path for those who want to keep the provider account-level only
resolves https://github.com/PrefectHQ/terraform-provider-prefect/issues/99
workspaceID
oraccountID
is not passed into a clientwork_pool
import interface, so that we can import on the command line by passing an optionalworkspace_id
. Comma separate example taken from the TF docsThe reason for adding this is that the provider makes
workspace_id
optional. This makes sense for use cases where an operator does not want the provider to be tied to a specific workspace (eg. it has account-level permissions and scope). However, in the previous implementation, an import would fail if the provider was not configured with a workspace_id. This change offers an optional import path for those who want to keep the provider account-level only