I manually deleted a specific resource, and I can not delete the cloudformation stack

0

I have 3 stacks deployed in ue-east-1, and I accidentally manually deleted AWS::Events::Rule resources of these stacks. Then if I call delete-stack to delete them, this error shows:

❯ aws cloudformation delete-stack --region us-east-1 --stack-name {my-stack-name}

An error occurred (ValidationError) when calling the DeleteStack operation: Role arn:aws:iam::{my-account-id]:role/cdk-{events-rule-resource-name} is invalid or cannot be assumed
1 Answer
0
Accepted Answer

Hello.

It could be an IAM role dependency issue.
I recommend that you check the following documents for troubleshooting.
The IAM role that was created together may also have disappeared, so creating an IAM role with the same name may solve the problem.
https://repost.aws/knowledge-center/cloudformation-role-arn-error

profile picture
EXPERT
answered 2 months ago
profile picture
EXPERT
reviewed 2 months ago
  • That works, thank you

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