1

I was testing the AWS SAM functionality and encountered an issue.

If by manually delete a resource that was originally created by the SAM template, then subsequent SAM deployment will fail. I do understand that deleting resource manually that was created by SAM is not a good practice. But this was just a test only

Error

Is there any way to fix this?

kar
  • 11
  • 2

1 Answers1

1

AWS SAM uses Cloudformation underneath to create various resources.

How do I update an AWS CloudFormation stack that's failing because of a resource that I manually deleted?

If you delete a resource from an AWS CloudFormation stack, then you must remove the resource from your AWS CloudFormation template. Otherwise, your stack fails to update, and you get an error message.

similar post : Function not found after manually deleting a function in a SAM CloudFormation stack

samtoddler
  • 8,463
  • 2
  • 26
  • 21