You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Modifying the space_id on an environment resource doesn't trigger a replacement but Terraform instead tries to update the resource in place which fails with
│ Error: Octopus API error: Resource is not found or it doesn't exist in the current space context. Please contact your administrator for more information. []
│ with octopusdeploy_environment.env,
│ on main.tf line 37, in resource "octopusdeploy_environment" "env":
│ 37: resource "octopusdeploy_environment" "env" {
Describe the bug
Modifying the
space_id
on an environment resource doesn't trigger a replacement but Terraform instead tries to update the resource in place which fails withSteps to reproduce
Expected behavior
Modifying the
space_id
on the environment triggers a replacement of the resourceLogs and other supporting information
Add the output of running
tf plan
ortf apply
along with any errors in the Octopus Server logs.Additional context
Work around - Use
create_before_destroy
lifecycle on the environment resources to force the replacementThe text was updated successfully, but these errors were encountered: