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 Antwort
0
Akzeptierte Antwort

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
EXPERTE
beantwortet vor 2 Monaten
profile picture
EXPERTE
überprüft vor 2 Monaten
  • That works, thank you

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen