Skip to content

Latest commit

 

History

History
 
 

10-resource-cleanup

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Resource clean up

This page provides instructions for cleaning up the resources created during the preceding modules.

Resource Cleanup Instructions

  1. Delete Cognito User pool domain that you created if you created one in Module 1: Auth

    Click here to expand for detailed instructions

    1. Go to the Cognito Console
    2. Go to Manage User Pools
    3. Choose CustomizeUnicorns-users user pool
    4. Go to Domain name under App integration
    5. Click Delete domain
    6. Confirm the deletion
  2. Delete API Gateway Usage plan if you created one in Module 5: Usage Plans

    Click here to expand for detailed instructions

    1. Go to the API Gateway Console
    2. Go to Usage plans
    3. Go to the Basic Usage Plan
    4. In the Details tab under Associated API Stages, remove the CustomizeUnicorns API
    5. On the upper right hand corner, click on Actions and choose Delete Usage Plan
  3. Delete the secret from AWS Secrets Manager if you created one in Module 2: Secrets

    Click here to expand for detailed instructions

    1. Go to the Secrets Manager Console
    2. Select the secure-serverless-db-secret secret
    3. In Actions select Delete secret
    4. Enter 7 (minimum waiting period) for waiting period and click Schedule deletion
  4. Delete the AWS WAF if you created one in Module 6: WAF

    Click here to expand for detailed instructions

    1. Go to the WAF Console
    2. In the navigation pane, choose Web ACLs.
    3. Choose the ProtectUnicorns web ACL you created in the module 6
    4. On the Rules tab in the right pane, choose Edit web ACL.
    5. 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.
    6. Choose Update
    7. 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
    8. On the Web ACLs page, confirm that the web ACL that you want to delete is selected, and then choose Delete.
    9. In the navigation pane, choose Rules.
    10. Go to each of the 3 rules we created, edit the rule to disassociate all the conditions for each rule
    11. Delete the rules
    12. Delete the 3 conditions we created in the workshop
  5. Delete CustomizeUnicorns CloudFormation stack

    Click here to expand for detailed instructions

    1. Go to the CloudFormation Console
    2. Select the CustomizeUnicorns Stack
    3. Under Actions, choose Delete Stack
  6. Empty the deployment s3 bucket:

    Click here to expand for detailed instructions

    1. Go to the S3 Console

    2. Search for bucket starting with secure-serverless-deploymentss3bucket

    3. Click on the checkmark for the bucket and click on the Empty button

    4. Type in the bucket name to confirm the empty operation

  7. Delete the Secure-Serverless resource setup CloudFormation stack

  8. 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.

  9. Delete the RDS snapshot of the aurora database in the RDS console