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
preguntada hace 2 meses438 visualizaciones
1 Respuesta
0
Respuesta aceptada

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
EXPERTO
respondido hace 2 meses
profile picture
EXPERTO
revisado hace 2 meses
  • That works, thank you

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas