diff --git a/octopusdeploy/resource_runbook_process.go b/octopusdeploy/resource_runbook_process.go index 96e135174..5ff0fb3ac 100644 --- a/octopusdeploy/resource_runbook_process.go +++ b/octopusdeploy/resource_runbook_process.go @@ -72,6 +72,7 @@ func resourceRunbookProcessCreate(ctx context.Context, d *schema.ResourceData, m runbookProcess.ID = current.ID runbookProcess.Links = current.Links + runbookProcess.ProjectID = runbook.ProjectID runbookProcess.Version = current.Version createdRunbookProcess, err := runbookprocess.Update(client, runbookProcess) diff --git a/terraform/51-deploymentprocesswithgitdependency/deployment_process.tf b/terraform/51-deploymentprocesswithgitdependency/deployment_process.tf index 566405bd1..e2adf9a5c 100644 --- a/terraform/51-deploymentprocesswithgitdependency/deployment_process.tf +++ b/terraform/51-deploymentprocesswithgitdependency/deployment_process.tf @@ -87,6 +87,7 @@ resource "octopusdeploy_deployment_process" "test_deployment_process" { name = "Kubectl Action" package_requirement = "LetOctopusDecide" start_trigger = "StartAfterPrevious" + target_roles = [ "mycluster" ] run_kubectl_script_action { name = "Kubectl Action" run_on_server = true @@ -106,7 +107,7 @@ resource "octopusdeploy_deployment_process" "test_deployment_process" { name = "Raw Yaml Action" package_requirement = "LetOctopusDecide" start_trigger = "StartAfterPrevious" - properties = { "Octopus.Action.TargetRoles" : "Qwerty" } + target_roles = [ "mycluster" ] action { action_type = "Octopus.KubernetesDeployRawYaml" name = "Raw Yaml Action" @@ -138,7 +139,7 @@ resource "octopusdeploy_deployment_process" "test_deployment_process" { name = "Deploy Secret" package_requirement = "LetOctopusDecide" start_trigger = "StartAfterPrevious" - properties = { "Octopus.Action.TargetRoles" : "Qwerty" } + target_roles = [ "mycluster" ] deploy_kubernetes_secret_action { name = "Deploy secret" secret_name = "name"