EC2 IMAGE BUILDER DELETING IMAGE BUILD VERSION

0

I am trying to delete image build, but its not deleting. I have deleted all the resources attached to it accidently. Now, the image build is still in Building state, and neither I can stop, nor delete the image build. I am getting following error: Image build version ARN: arn:aws:imagebuilder:ap-south-xyz:image/mydemorecipe/1.0.0/2 Error message: Resource dependency error: The resource ARN 'arn:aws:imagebuilder:ap-south-xyz:image/mydemorecipe/1.0.0/2' has a running workflow.

질문됨 일 년 전598회 조회
2개 답변
1

Hello,

Since the image creation is in progress. Please use aws cli command to cancel it manually Sample Command

aws imagebuilder cancel-image-creation --image-build-version-arn arn:aws:imagebuilder:ap-south-xyz:image/mydemorecipe/1.0.0/2

After this please try to delete the image build.

Hope this helps.

AWS
지원 엔지니어
Vinay_S
답변함 일 년 전
0

Resource dependency error[1] indicates that you have attempted to delete a resource with a dependency that prohibits this action.

As per the documentation[2], you can delete the stack by skipping the resource that is in delete failed state. Here are the steps to delete the stack: From AWS CloudFormation Console, 1.Open the AWS CloudFormation console. 2.Choose the stack that's stuck in DELETE_FAILED status. 3.Choose Delete. 4.Note: A window opens and lists the resources that failed to delete. 5.In the window, select all the resources that you want to retain, and then choose Delete stack.

From AWS Command Line Interface, Please run the following delete-stack command: $ aws cloudformation delete-stack --stack-name test-components-ami-linux --retain-resources GeneralComponentLinuxAmi

References: [1] DeleteComponent https://docs.aws.amazon.com/imagebuilder/latest/APIReference/API_DeleteComponent.html

[2] Delete stack fails https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/troubleshooting.html#troubleshooting-errors-delete-stack-fails

AWS
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠