Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

Workshop Cleanup

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

Resource Cleanup Instructions

1. Module 5 Cleanup

Delete the Unicorn Manager CloudFront distribution and S3 bucket for the static website hosting created in module 5. Using the Lambda console, also delete the ListUnicornRides and ListUnicornAuthorizer functions. If you have deployed the pre-requisites CloudFormation stack, delete the stack using the CloudFormation console.

Step-by-step instructions (expand for details)

  1. In the AWS Management Console, click Services then select CloudFront under Networking & Content Delivery.

  2. Select the distribution for the Unicorn Manager application we created in module 5 and click Disable.

  3. Once the distribution is disabled, click Delete.

  4. Using the Services dropdown, navigate to the S3 console under Storage.

  5. Select the unicornmanager-xxx bucket and click Delete bucket. In the confirmation window enter the bucket name and click Confirm.

  6. Next, using the Services dropdown navigate to the Lambda console under Compute.

  7. From the functions list, select the ListUnicornRides function and use the Actions dropdown to select Delete.

  8. Repeat the same operation for the ListUnicornAuthorizer function.

  9. If you have deployed the pre-requisites stack before starting module 5, navigate to the CloudFormation console under Management Tools.

  10. Select the WildRydes-xxx stack and use the Actions dropdown to click Delete Stack.

2. Module 4 Cleanup

Delete the REST API created in module 4. There is a Delete API option in the Actions drop-down when you select your API in the Amazon API Gateway Console.

Step-by-step instructions (expand for details)

  1. In the AWS Management Console, click Services then select API Gateway under Application Services.

  2. Select the API you created in module 4.

  3. Expand the Actions drop-down and choose Delete API.

  4. Enter the name of your API when prompted and choose Delete API.

3. Module 3 Cleanup

Delete the AWS Lambda function, IAM role and Amazon DynamoDB table you created in module 3.

Step-by-step instructions (expand for details)

Lambda Function

  1. In the AWS Management Console, click Services then select Lambda under Compute.

  2. Select the RequestUnicorn function you created in module 3.

  3. From the Actions drop-down, choose Delete function.

  4. Choose Delete when prompted to confirm.

IAM Role

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

  2. Select Roles from the navigation menu.

  3. Type WildRydesLambda into the filter box.

  4. Select the role you created in module 3.

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

  6. Choose Yes, Delete when prompted to confirm.

DynamoDB Table

  1. In the AWS Management Console, click Services then select DynamoDB under Databases

  2. Choose Tables in the navigation menu.

  3. Choose the Rides table you created in module 3.

  4. Choose Delete table from the Actions drop-down.

  5. Leave the checkbox to Delete all CloudWatch alarms for this table selected and choose Delete.

4. Module 2 Cleanup

If you used the provided AWS CloudFormation template to complete module 2, simply delete the stack using the AWS CloudFormation Console. Otherwise, delete the Amazon Cognito user pool you created in module 2.

Step-by-step instructions (expand for details)

  1. From the AWS Console click Services then select Cognito under Mobile Services.

  2. Choose Manage your User Pools.

  3. Select the WildRydes user pool you created in module 2.

  4. Choose Delete Pool in the upper right corner of the page.

  5. Type delete and choose Delete Pool when prompted to confirm.

5. Module 1 Cleanup

If you used the provided AWS CloudFormation template to complete module 1, simply delete the stack using the AWS CloudFormation Console. Otherwise, delete the Amazon S3 bucket you created in module 1.

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.

6. 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 RequestUnicorn function. Also, if you launched any CloudFormation stacks, there may be log groups associated with custom resources in those stacks that you should delete.

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. Select the /aws/lambda/RequestUnicorn log group. If you have many log groups in your account, you can type /aws/lambda/RequestUnicorn into the Filter text box to easily locate the log group.

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

  5. Choose Yes, Delete when prompted to confirm.

  6. If you launched any CloudFormation templates to complete a module, repeat steps 3-5 for any log groups which begin with /aws/lambda/wildrydes-webapp.