capabilities.work

Cancel Running Image Build

A 4-step recipe with Amazon EC2 Image Builder. We can help you get access.

Recipe · 4 steps

Cancel Running Image Build

Create an image and cancel it if it is still building, then confirm the cancellation.

  1. Start a new image build that may later be cancelled while in flight.
  2. Read the image to determine whether it is still in a non-terminal state that can be cancelled.
  3. Cancel the in-flight image build using its build version ARN.
  4. Re-read the image to confirm that the cancellation took effect.
What you'll need to have ready
  • imageRecipeArn: The ARN of the image recipe to build.
  • infrastructureConfigurationArn: The ARN of the infrastructure configuration used to build and test the image.
  • clientToken: An idempotency token reused across the create and cancel requests.
For your developer

Arazzo workflow amazon-ec2-image-builder:cancel-running-image-build, 4 operations: CreateImage → GetImage → CancelImageCreation → GetImage. Specs on APIs.io.