Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

README.md

Workshop Cleanup

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

Resource Cleanup Instructions

1. Module 4 Cleanup

Delete the AWS CloudFormation Stacks for wildrydes-unicorn-api-test and wildrydes-unicorn-api-beta.

Step-by-step instructions (expand for details)

  1. In the AWS Management Console, click Services then select CloudFormation under Management Tools.

  2. Select the checkbox to the left of the wildrydes-unicorn-api-test Stack.

  3. Select the Actions dropdown menu above the list of Stacks.

  4. Select Delete Stack.

  5. Select Yes, Delete.

Repeat these steps for the wildrydes-unicorn-api-beta Stack.

2. Module 3 Cleanup

No actions required to cleanup Module 3.

3. Module 2 Cleanup

IAM Role

Delete the IAM Roles for WildRydesUnicornApiCodeBuild and WildRydesUnicornApiCodePipeline.

Step-by-step instructions (expand for details)

  1. In the AWS Management Console, click Services then select IAM under Security, Identity & Compliance.

  2. Select Roles from the navigation menu.

  3. Type WildRydesUnicornApiCloudFormation into the filter box.

  4. Select the role.

  5. From the Role actions drop-down, select Delete role.

  6. Choose Yes, Delete when prompted to confirm.

Repeat these steps for the WildRydesUnicornApiCodeBuild and WildRydesUnicornApiCodePipeline Roles.

CodeBuild

Delete the AWS CodeBuild project wildrydes-unicorn-api.

Step-by-step instructions (expand for details)

  1. In the AWS Management Console, click Services then select CodeBuild under Developer Tools.

  2. Select wildrydes-unicorn-api from the list of Build projects.

  3. From the Actions drop-down, select Delete.

  4. Choose Delete when prompted to confirm.

CodePipeline

Delete the AWS CodePipeline pipeline wildrydes-unicorn-api.

Step-by-step instructions (expand for details)

  1. In the AWS Management Console, click Services then select CodePipeline under Developer Tools.

  2. Select wildrydes-unicorn-api from the list of Pipelines.

  3. Choose Edit.

  4. Choose Delete.

  5. Enter wildrydes-unicorn-api as the name of the pipeline to confirm deletion.

  6. Choose Delete.

  7. Choose the Refresh Icon to update the list of pipelines and confirm wildrydes-unicorn-api is no longer listed.

4. Module 1 Cleanup

CloudFormation

Delete the AWS CloudFormation Stack for wildrydes-unicorn-api.

Step-by-step instructions (expand for details)

  1. In the AWS Management Console, click Services then select CloudFormation under Management Tools.

  2. Select the checkbox to the left of the wildrydes-unicorn-api Stack.

  3. Select the Actions dropdown menu above the list of Stacks.

  4. Select Delete Stack.

  5. Select Yes, Delete.

S3

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)

  1. In the AWS Management Console choose Services then select S3 under Storage.

  2. Select the bucket you created in module 1.

  3. Choose Delete bucket.

  4. Enter the name of your bucket when prompted to confirm, Then choose confirm.

5. 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 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)

  1. From the AWS Console click Services then select CloudWatch under Management Tools.

  2. Choose Logs in the navigation menu.

  3. Type /aws/lambda/wildrydes-unicorn-api into the Filter text box to locate the log groups.

For each log group, perform the following steps:

  1. Select the log group

  2. Choose Delete log group from the Actions drop-down.

  3. Choose Yes, Delete when prompted to confirm.

Follow the steps above to filter and delete the /aws/codebuild/wildrydes-unicorn-api log group.