This page provides instructions for cleaning up the resources created during the preceding modules.
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 directions
- Go to the Amazon API Gateway Console
- Select the API you created in module 4.
- Expand the Actions drop-down and choose Delete API.
- Enter the name of your API when prompted and choose Delete API.
Delete the AWS Lambda function, IAM role and Amazon DynamoDB table you created in module 3.
✅ Step-by-step directions
- Go to the AWS Lambda console
- Select the
RequestUnicorn
function you created in module 3. - From the Actions drop-down, choose Delete function.
- Choose Delete when prompted to confirm.
- Go to the AWS IAM Console
- Select Roles from the navigation menu.
- Type
WildRydesLambda
into the filter box. - Select the role you created in module 3.
- From the Role actions drop-down, select Delete role.
- Choose Yes, Delete when prompted to confirm.
- Go to the Amazon DynamoDB Console
- Choose Tables in the navigation menu.
- Choose the Rides table you created in module 3.
- Choose Delete table from the Actions drop-down.
- Leave the checkbox to Delete all CloudWatch alarms for this table selected and choose Delete.
Delete the Amazon Cognito User Pool
✅ Step-by-step directions
- Go to the Amazon Cognito Console
- Choose Manage your User Pools.
- Select the WildRydes user pool you created in module 2.
- Choose Delete Pool in the upper right corner of the page.
- Complete the application deletion process.
Delete the AWS Amplify Console application and optionally the AWS CodeCommit or GitHub repository created:
✅ Step-by-step directions
- Launch the Amplify Console console page.
- Select the application you launched today.
- From Actions in the top right corner, select Delete App
- Complete the application deletion process.
- Open the AWS CodeCommit console
- Select the radio button next to the repository created today.
- Select Delete repository from the upper right of the page.
- Complete the repository deletion process.
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.
✅ Step-by-step directions
- From the AWS Console click Services then select CloudWatch under Management Tools.
- Choose Logs in the navigation menu.
- 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. - Choose Delete log group from the Actions drop-down.
- Choose Yes, Delete when prompted to confirm.
- 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
.
DO NOT REMOVE Cloud9 Development environment created for the exercise. The environment will be useful for Lab 2 of AWS Serverless Immersion Day.
You can delete the Cloud9 Development environment after completing Lab 2.