When you no longer need your serverless stack, you can delete it in the AWS Management Console under CloudFormation:
- Sign in to the AWS Management Console and open the CloudFormation console at https://console.aws.amazon.com/cloudformation/.
- From the list, select lambda-dynamo-data-api.
- Choose Actions and then Delete Stack.
- Choose Yes, Delete when prompted.
Alternatively, you can run the following shell script with ./delete-stack.sh:
#!/usr/bin/env bash . ./common-variables.sh aws cloudformation delete-stack --stack-name $template --region $region --profile $profile