Ephemeral action ids are impossible to reference in octopusdeploy_variable
action scopes
#520
Labels
kind/question
Further information is requested
triage/potentially-stale
Issues that are old and may have been fixed in more recent provider versions. Needs re-validating.
Describe the bug
Deployment steps get new ids whenever they're changed. This makes it impossible to target them in the
octopusdeploy_variable.scope.actions
array if they change.Steps to reproduce
octopusdeploy_project
and aoctopusdeploy_deployment_process
resource with 2 deployment steps (doesn't matter which type).octopusdeploy_variable
, reference theoctopusdeploy_project
with theowner_id
and limit the scope to a particular action:scope.actions
is no longer valid. You will be pointing to an invalid resource.Expected behavior
In an ideal world, the ID of the deployment step (action) would simply stay the same. I can gather that, due to how OctopusDeploy probably works at the moment, that would be quite the breaking change. The deployment steps are far too ephemeral to have deterministic terraform deployments. This borders between bug and feature because essentially, the
actions
array is useless as a write-property which I see as a bug, but the proper solution would be a feature-implementation so we can better track these deployment steps as individual entities in our terraform configurations.Alternatively, the
scope.actions
array could target steps by name. Not ideal since multiple steps could have the same name, but it's at least something relatively tangible.Environment and versions:
Windows
2021.3.12372
1.4.6
0.12.0
The text was updated successfully, but these errors were encountered: