This page provides instructions for cleaning up the resources created during the preceding modules.
Delete the AWS CloudFormation Stacks for wildrydes-unicorn-api-test and wildrydes-unicorn-api-beta.
Step-by-step instructions (expand for details)
-
In the AWS Management Console, click Services then select CloudFormation under Management Tools.
-
Select the checkbox to the left of the
wildrydes-unicorn-api-testStack. -
Select the Actions dropdown menu above the list of Stacks.
-
Select Delete Stack.
-
Select Yes, Delete.
Repeat these steps for the wildrydes-unicorn-api-beta Stack.
No actions required to cleanup Module 3.
Delete the IAM Roles for WildRydesUnicornApiCodeBuild and WildRydesUnicornApiCodePipeline.
Step-by-step instructions (expand for details)
-
In the AWS Management Console, click Services then select IAM under Security, Identity & Compliance.
-
Select Roles from the navigation menu.
-
Type
WildRydesUnicornApiCloudFormationinto the filter box. -
Select the role.
-
From the Role actions drop-down, select Delete role.
-
Choose Yes, Delete when prompted to confirm.
Repeat these steps for the WildRydesUnicornApiCodeBuild and WildRydesUnicornApiCodePipeline Roles.
Delete the AWS CodeBuild project wildrydes-unicorn-api.
Step-by-step instructions (expand for details)
-
In the AWS Management Console, click Services then select CodeBuild under Developer Tools.
-
Select
wildrydes-unicorn-apifrom the list of Build projects. -
From the Actions drop-down, select Delete.
-
Choose Delete when prompted to confirm.
Delete the AWS CodePipeline pipeline wildrydes-unicorn-api.
Step-by-step instructions (expand for details)
-
In the AWS Management Console, click Services then select CodePipeline under Developer Tools.
-
Select
wildrydes-unicorn-apifrom the list of Pipelines. -
Choose Edit.
-
Choose Delete.
-
Enter
wildrydes-unicorn-apias the name of the pipeline to confirm deletion. -
Choose Delete.
-
Choose the Refresh Icon to update the list of pipelines and confirm
wildrydes-unicorn-apiis no longer listed.
Delete the AWS CloudFormation Stack for wildrydes-unicorn-api.
Step-by-step instructions (expand for details)
-
In the AWS Management Console, click Services then select CloudFormation under Management Tools.
-
Select the checkbox to the left of the
wildrydes-unicorn-apiStack. -
Select the Actions dropdown menu above the list of Stacks.
-
Select Delete Stack.
-
Select Yes, Delete.
Delete the S3 Bucket that was created in Module 1. The recommended name for the Bucket was wildrydes-devops-yourname, however you may have chosen differently.
Step-by-step instructions (expand for details)
-
In the AWS Management Console choose Services then select S3 under Storage.
-
Select the bucket you created in module 1.
-
Choose Delete bucket.
-
Enter the name of your bucket when prompted to confirm, Then choose confirm.
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 wildrydes-unicorn-api-* functions. You should also delete the log group for the wildrydes-unicorn-api CodeBuild project.
Step-by-step instructions (expand for details)
-
From the AWS Console click Services then select CloudWatch under Management Tools.
-
Choose Logs in the navigation menu.
-
Type
/aws/lambda/wildrydes-unicorn-apiinto the Filter text box to locate the log groups.
For each log group, perform the following steps:
-
Select the log group
-
Choose Delete log group from the Actions drop-down.
-
Choose Yes, Delete when prompted to confirm.
Follow the steps above to filter and delete the /aws/codebuild/wildrydes-unicorn-api log group.