Open
Description
Currently it seems if we terraform destroy an execution we remove it from the state file and clear it from the Requests in Intersight.
Ideally, in this specific context a Terraform destroy should:
- Optionally avoid the deletion in Intersight (in case we want to keep the list of executions) if a specific parameter is set by the user in the resource
- Automatically rollback the workflow if rollback_action = "Enabled" maybe by calling the code present in the intersight_workflow_rollback_workflow resource.
Sample TF Code
resource "intersight_workflow_workflow_info" "claimhttp" {
name = "claimhttp"
action = "Start"
input = {
"name" = "httpbin"
"endpoint" = "httpbin.org"
}
organization {
object_type = "organization.Organization"
moid = var.organization
}
workflow_definition {
object_type = "workflow.WorkflowDefinition"
moid = var.workflow_moid
}
}