Hi,
We’re currently encountering an issue while attempting to create a run for the tfe_workspace_run resource. Here’s the configuration we’re using:
resource "tfe_workspace" "tfeWorkspace" {
for_each = var.tfe_map
name = each.value["workspacename"]
organization = tfe_organization.orgName.name
structured_run_output_enabled = each.value["structured_run_output_enabled"]
}
resource "tfe_workspace_run" "ws_run_child" {
workspace_id = tfe_workspace.tfeWorkspace["s3-project"].id
depends_on = [tfe_workspace_run.ws_run_parent]
apply {
manual_confirm = true
}
}
We encounter the following error message:
module.tfe_dev_module.tfe_workspace_run.ws_run_parent: Creating...
Error: error creating run for workspace ws-xxxxxx: resource not found
It appears that the tfe_workspace_run resource is unable to locate the specified workspace, resulting in the failure to create the run. It is intersting to note that despite the existence and active status of the workspaces with the error ID “ws-xxxxxx,” the problem persists.
module.tfe_dev_module.tfe_workspace.tfeWorkspace["s3-project"]: Refreshing state... [id=ws-xxxxxx]
We’re unsure if this is a problem with the tfe provider or if there’s something we missed in our configurations. Your insights and guidance would be greatly appreciated.
Thanks,