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
Haonan
已提问 2 个月前438 查看次数
1 回答
0
已接受的回答

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
专家
已回答 2 个月前
profile picture
专家
已审核 2 个月前
  • That works, thank you

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则