Skip to content

Properly handle workflows rollback and execution destroy #103

Open
@rtortori

Description

@rtortori

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
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions