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

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南