AWS CloudFormation · Arazzo Workflow

CloudFormation Tear Down a Stack

Version 1.0.0

Disable termination protection, delete the stack, then poll until DELETE_COMPLETE.

1 workflow 1 source API 1 provider
View Spec View on GitHub AutomationCloud ResourcesIaCInfrastructure as CodeStack ManagementArazzoWorkflows

Provider

cloudformation

Workflows

teardown-stack
Disable termination protection and delete a stack to completion.
Turns off termination protection, deletes the stack, and waits for the stack to fully delete.
3 steps inputs: stackName outputs: finalStatus, stackId
1
disableProtection
Disable termination protection so the subsequent DeleteStack call is not rejected.
2
deleteStack
Issue the stack deletion. After this call returns the stack deletion has started and can be polled via DescribeStacks.
3
pollDeletion
Poll DescribeStacks until the stack is gone. End on DELETE_COMPLETE or branch to a failure end on DELETE_FAILED.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: CloudFormation Tear Down a Stack
  summary: Disable termination protection, delete the stack, then poll until DELETE_COMPLETE.
  description: >-
    Safely decommissions a stack. Because a stack with termination protection
    enabled cannot be deleted, the workflow first disables termination
    protection, then issues DeleteStack, and finally polls DescribeStacks until
    the stack reaches DELETE_COMPLETE — branching to a failure end if deletion
    fails. Every step spells out its request inline using the AWS query protocol
    so the flow can be read and executed without opening the underlying OpenAPI
    description.
  version: 1.0.0
  x-realizes-capability-ids:
  - BC-600.50
  x-capability-derivation:
    method: 'deterministic join: sourceDescriptions -> per-tag OpenAPI -> tag/capability edge. No classification at this step.'
    min_confidence: 0.7
    sources:
    - capability_id: BC-600.50
      capability_name: IT Infrastructure Management
      spec: cloudformation-stacks-api-openapi.yml
      confidence: 0.85
    model: Turbo EA Capabilities by Vincent Verdet — Turbo EA, https://github.com/vincentmakes/turbo-ea-capabilities, CC BY 4.0
sourceDescriptions:
- name: stacksApi
  url: ../openapi/cloudformation-stacks-api-openapi.yml
  type: openapi
workflows:
- workflowId: teardown-stack
  summary: Disable termination protection and delete a stack to completion.
  description: >-
    Turns off termination protection, deletes the stack, and waits for the stack
    to fully delete.
  inputs:
    type: object
    required:
    - stackName
    properties:
      stackName:
        type: string
        description: The name or unique ID of the stack to delete.
  steps:
  - stepId: disableProtection
    description: >-
      Disable termination protection so the subsequent DeleteStack call is not
      rejected.
    operationId: updateTerminationProtection
    requestBody:
      contentType: application/x-www-form-urlencoded
      payload:
        StackName: $inputs.stackName
        EnableTerminationProtection: false
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      stackId: $response.body#/UpdateTerminationProtectionResult/StackId
  - stepId: deleteStack
    description: >-
      Issue the stack deletion. After this call returns the stack deletion has
      started and can be polled via DescribeStacks.
    operationId: deleteStack
    requestBody:
      contentType: application/x-www-form-urlencoded
      payload:
        StackName: $inputs.stackName
        DeletionMode: STANDARD
    successCriteria:
    - condition: $statusCode == 200
  - stepId: pollDeletion
    description: >-
      Poll DescribeStacks until the stack is gone. End on DELETE_COMPLETE or
      branch to a failure end on DELETE_FAILED.
    operationId: describeStacks
    requestBody:
      contentType: application/x-www-form-urlencoded
      payload:
        StackName: $inputs.stackName
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      stackStatus: $response.body#/DescribeStacksResult/Stacks/0/StackStatus
    onSuccess:
    - name: deleteDone
      type: end
      criteria:
      - context: $response.body
        condition: $.DescribeStacksResult.Stacks[0].StackStatus == "DELETE_COMPLETE"
        type: jsonpath
    - name: deleteFailed
      type: end
      criteria:
      - context: $response.body
        condition: $.DescribeStacksResult.Stacks[0].StackStatus == "DELETE_FAILED"
        type: jsonpath
    - name: stillDeleting
      type: goto
      stepId: pollDeletion
      criteria:
      - context: $response.body
        condition: $.DescribeStacksResult.Stacks[0].StackStatus == "DELETE_IN_PROGRESS"
        type: jsonpath
  outputs:
    stackId: $steps.disableProtection.outputs.stackId
    finalStatus: $steps.pollDeletion.outputs.stackStatus

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/cloudformation-teardown-stack-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.