arazzo: 1.0.1
info:
title: Amazon EC2 Deregister an AMI After Confirmation
summary: Confirm an AMI exists, deregister it, then verify it is gone.
description: >-
Safely retires an AMI. The workflow describes the image to confirm it is
available, deregisters it, and describes it again to verify the deregister
took effect. Every step spells out its request inline using the Amazon EC2
query protocol (Action and Version parameters) 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: amazon-ec2-amis-api-openapi.yml
confidence: 0.8
model: Turbo EA Capabilities by Vincent Verdet — Turbo EA, https://github.com/vincentmakes/turbo-ea-capabilities, CC BY 4.0
sourceDescriptions:
- name: amisApi
url: ../openapi/amazon-ec2-amis-api-openapi.yml
type: openapi
workflows:
- workflowId: deregister-image-and-cleanup
summary: Confirm, deregister, and re-verify an AMI.
description: >-
Chains DescribeImages, DeregisterImage, and a second DescribeImages so an
AMI is verified present, removed, and confirmed gone.
inputs:
type: object
required:
- imageId
properties:
imageId:
type: string
description: The ID of the AMI to deregister.
steps:
- stepId: confirmImage
description: Confirm the AMI is available before deregistering it.
operationId: DescribeImages
requestBody:
contentType: application/x-www-form-urlencoded
payload:
Action: DescribeImages
Version: '2016-11-15'
ImageIds:
- $inputs.imageId
successCriteria:
- condition: $statusCode == 200
outputs:
confirmStatus: $statusCode
- stepId: DeregisterImage
description: Deregister the AMI so it can no longer launch instances.
operationId: DeregisterImage
requestBody:
contentType: application/x-www-form-urlencoded
payload:
Action: DeregisterImage
Version: '2016-11-15'
ImageId: $inputs.imageId
successCriteria:
- condition: $statusCode == 200
outputs:
deregisterStatus: $statusCode
- stepId: verifyGone
description: Describe the AMI again to verify the deregister took effect.
operationId: DescribeImages
requestBody:
contentType: application/x-www-form-urlencoded
payload:
Action: DescribeImages
Version: '2016-11-15'
ImageIds:
- $inputs.imageId
successCriteria:
- condition: $statusCode == 200
outputs:
verifyStatus: $statusCode
outputs:
deregisterStatus: $steps.DeregisterImage.outputs.deregisterStatus
verifyStatus: $steps.verifyGone.outputs.verifyStatus
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
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. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.