Amazon EFS · Arazzo Workflow

Amazon EFS Decommission File System

Version 1.0.0

Confirm a file system has no mount targets, then delete the file system.

1 workflow 1 source API 1 provider
View Spec View on GitHub Amazon Web ServicesEFSElastic File SystemFile StorageNFSServerlessStorageArazzoWorkflows

Provider

amazon-efs

Workflows

decommission-file-system
Verify no mount targets remain, then delete the file system.
Describes the file system, lists its mount targets, and deletes the file system only when it has zero mount targets, preventing a delete that EFS would reject.
3 steps inputs: fileSystemId outputs: deletedStatusCode
1
describeFileSystem
Describe the file system to confirm it exists and capture its reported number of mount targets before attempting deletion.
2
listMountTargets
Enumerate the current mount targets for the file system and branch on whether any remain attached.
3
deleteFileSystem
Permanently delete the file system now that no mount targets are attached, severing access to its contents.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Amazon EFS Decommission File System
  summary: Confirm a file system has no mount targets, then delete the file system.
  description: >-
    Safely retires an Amazon EFS file system. Because EFS requires that every
    mount target be removed before a file system can be deleted, the workflow
    first describes the file system, then enumerates its mount targets and
    branches: it only proceeds to delete the file system when no mount targets
    remain, otherwise it ends without deleting so a caller can tear the mount
    targets down first. Every step spells out its request inline so the flow can
    be read and executed without opening the underlying OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: src20150201Api
  url: ../openapi/amazon-efs-2015-02-01-api-openapi.yml
  type: openapi
workflows:
- workflowId: decommission-file-system
  summary: Verify no mount targets remain, then delete the file system.
  description: >-
    Describes the file system, lists its mount targets, and deletes the file
    system only when it has zero mount targets, preventing a delete that EFS
    would reject.
  inputs:
    type: object
    required:
    - fileSystemId
    properties:
      fileSystemId:
        type: string
        description: The ID of the file system to decommission.
  steps:
  - stepId: describeFileSystem
    description: >-
      Describe the file system to confirm it exists and capture its reported
      number of mount targets before attempting deletion.
    operationId: describeFileSystems
    parameters:
    - name: FileSystemId
      in: query
      value: $inputs.fileSystemId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      numberOfMountTargets: $response.body#/FileSystems/0/NumberOfMountTargets
      lifeCycleState: $response.body#/FileSystems/0/LifeCycleState
  - stepId: listMountTargets
    description: >-
      Enumerate the current mount targets for the file system and branch on
      whether any remain attached.
    operationId: describeMountTargets
    parameters:
    - name: FileSystemId
      in: query
      value: $inputs.fileSystemId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      mountTargets: $response.body#/MountTargets
    onSuccess:
    - name: noMountTargets
      type: goto
      stepId: deleteFileSystem
      criteria:
      - context: $response.body
        condition: $.MountTargets.length == 0
        type: jsonpath
    - name: mountTargetsRemain
      type: end
      criteria:
      - context: $response.body
        condition: $.MountTargets.length > 0
        type: jsonpath
  - stepId: deleteFileSystem
    description: >-
      Permanently delete the file system now that no mount targets are
      attached, severing access to its contents.
    operationId: deleteFileSystem
    parameters:
    - name: FileSystemId
      in: path
      value: $inputs.fileSystemId
    successCriteria:
    - condition: $statusCode == 204
    outputs:
      deletedStatusCode: $statusCode
  outputs:
    deletedStatusCode: $steps.deleteFileSystem.outputs.deletedStatusCode

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/amazon-efs-decommission-file-system-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.