This page provides instructions for cleaning up the resources created during the preceding modules.
-
Delete Cognito User pool domain that you created if you created one in Module 1: Auth
Click here to expand for detailed instructions
- Go to the Cognito Console
- Go to Manage User Pools
- Choose
CustomizeUnicorns-users
user pool - Go to Domain name under App integration
- Click Delete domain
- Confirm the deletion
-
Delete API Gateway Usage plan if you created one in Module 5: Usage Plans
Click here to expand for detailed instructions
- Go to the API Gateway Console
- Go to Usage plans
- Go to the
Basic
Usage Plan - In the Details tab under Associated API Stages, remove the
CustomizeUnicorns
API - On the upper right hand corner, click on Actions and choose Delete Usage Plan
-
Delete the secret from AWS Secrets Manager if you created one in Module 2: Secrets
Click here to expand for detailed instructions
- Go to the Secrets Manager Console
- Select the
secure-serverless-db-secret
secret - In Actions select Delete secret
- Enter
7
(minimum waiting period) for waiting period and click Schedule deletion
-
Delete the AWS WAF if you created one in Module 6: WAF
Click here to expand for detailed instructions
- Go to the WAF Console
- In the navigation pane, choose Web ACLs.
- Choose the
ProtectUnicorns
web ACL you created in the module 6 - On the Rules tab in the right pane, choose Edit web ACL.
- Remove all rules from the web ACL by choosing the x at the right of the row for each rule. This doesn't delete the rules from AWS WAF, it just removes the rules from this web ACL.
- Choose Update
- Dissasociate the API gateway from the WAF by going to the section AWS resources using this web ACL in the Rules tab and clicking the x at the right of the API gateway stage
- On the Web ACLs page, confirm that the web ACL that you want to delete is selected, and then choose Delete.
- In the navigation pane, choose Rules.
- Go to each of the 3 rules we created, edit the rule to disassociate all the conditions for each rule
- Delete the rules
- Delete the 3 conditions we created in the workshop
-
Delete
CustomizeUnicorns
CloudFormation stackClick here to expand for detailed instructions
- Go to the CloudFormation Console
- Select the
CustomizeUnicorns
Stack - Under Actions, choose Delete Stack
-
Empty the deployment s3 bucket:
Click here to expand for detailed instructions
-
Go to the S3 Console
-
Search for bucket starting with
secure-serverless-deploymentss3bucket
-
Click on the checkmark for the bucket and click on the Empty button
-
Type in the bucket name to confirm the empty operation
-
-
Delete the
Secure-Serverless
resource setup CloudFormation stack -
CloudWatch Logs AWS Lambda automatically creates a new log group per function in Amazon CloudWatch Logs and writes logs to it when your function is invoked. You should delete the log group for the lambda functions. (You can search for log groups starting with
/aws/lambda/CustomizeUnicorn
prefix. -
Delete the RDS snapshot of the aurora database in the RDS console