As a Building Block developer, I want to execute tofu import statements in order to import existing resources into the terraform/tofu state. This action is needed, if I want to modify an existing building block or if I want to migrate an existing OSB to a building block representation.
Since the tofu workspace name is not known in advance, it is currently impossible to write a proper migration script.
One solution could be to pass an initialization script (with the tofu import statements) before executing tofu apply inside the building block Terraform runner.