Extremely Important Note: You must strictly follow the order below. Absolutely do not delete the EC2 stack (wild-rydes-async-msg-0) first, because if the virtual machine is deleted, you will be disconnected from VS Code and won’t be able to run the commands to delete the resources inside!
cd ~/wild-rydes-async-messaging/code/lab-1
aws cloudformation delete-stack \
--stack-name wild-rydes-async-msg-1
aws-sam-cli-managed-default stack, you must go to the S3 service, find the SAM bucket, and click the Empty button to clean up the temporary files inside. If you skip this step, CloudFormation will throw an error saying “The bucket you tried to delete is not empty”.aws-sam-cli-managed-default stack.wild-rydes-async-msg-0 stack (the stack containing the EC2 instance) and click Delete to terminate the entire environment.
