Open MiguelNdeCarvalho opened 2 years ago
I've just noticed this myself, while trying to reapply a template containing an octopusdeploy_deployment_process
with a generic action block:
Action name 'Apply a Terraform template' is already in use by another action in this deployment process. Action names must be unique.
Also getting:
Error: octopus deploy api returned an error on endpoint /api/Spaces-1/projects/Projects-39/deploymentprocesses - [Providing a script body is not valid for scripts from a package. Providing a script syntax is not valid for scripts from a package. 'Packag e' was selected as the script-source but a primary package was not selected. Please provide a script file name.
when applying
# octopusdeploy_deployment_process.all["service"] will be updated in-place
~ resource "octopusdeploy_deployment_process" "all" {
id = "deploymentprocess-Projects-39"
# (3 unchanged attributes hidden)
~ step {
id = "X"
name = "Set image on for auth-service"
~ target_roles = [
# (2 unchanged elements hidden)
"demo",
+ "test",
]
# (4 unchanged attributes hidden)
# (1 unchanged block hidden)
}
# (1 unchanged block hidden)
}
I had to delete all the the process steps and apply again.
I am also getting the same error. Deleting all the process steps and applying again works.
However, every terraform apply
that touches the file where the code for this step is stored will run into the issue again. This makes the delete/re-apply workaround not sustainable for us, as we manage all our infrastructure entirely with terraform.
Describe the bug The first time I apply the code it works just fine. If I try to do another
terraform apply
it just fails.Terraform code
Logs and other supporting information
terraform plan:
terraform apply
:Environment and versions:
Linux
2021.3.8030
v1.0.0
0.7.60