Deleting Image Builder image with version failed saying it has a running workflow

0

I have created an image builder pipeline via cloud formation stack and when the pipeline is still running I terminated the EC2 instance then deleted the stack after I realized there is some configuration errors in my settings and I want to do it again. However all the resources get deleted except the "image version" resource and it is showing "building" status. Till 1 day later the status is still "building" and when I used the AWS Cli try to delete it I get the below error:

An error occurred (ResourceDependencyException) when calling the DeleteImage operation: Resource dependency error: The resource ARN 'arn:aws:imagebuilder:ap-southeast-1:XXXXX:image/amazon-linux-2-with-latest-ssm-agent/0.0.1/1' has a running workflow.

I have stopped the pipeline and there is no "running workflow". How to proceed to delete that image with versioning in such a case? Thank you.

asked 2 years ago911 views
1 Answer
0
Accepted Answer

Hello,

As I understand, your pipeline is not getting deleted as image version is in building status with the following error when you try to delete it:

An error occurred (ResourceDependencyException) when calling the DeleteImage operation: Resource dependency error: The resource ARN 'arn:aws:imagebuilder:ap-southeast-1:XXXXX:image/amazon-linux-2-with-latest-ssm-agent/0.0.1/1' has a running workflow.

In order to troubleshoot this issue, we will need to escalate it with our internal service team. Since the error you pasted does not have your AWS Account ID, which is required in order to proceed, I suggest creating a case with us at Premium Support [1]. For immediate assistance, please feel free to open a call/chat with us and reference this re:Post thread, for an AWS Engineer to assist you.

[1] Creating support cases and case management - https://docs.aws.amazon.com/awssupport/latest/user/case-management.html

AWS
SUPPORT ENGINEER
answered 2 years ago
  • Hi today I am able to delete that "image build version" without any errors. I guess it there is a timeout for the image version to expire and turn from "building" to "failure" so I finally can delete the image.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions