This page provides instructions for cleaning up the resources created during the preceding modules.
✅ Step-by-step directions(expand for details)
Delete the AppSync GraphQL API. From the AppSync console, select the application and click **Delete**
- Go to the [AWS AppSync Console][appsync-console].
- Select the API created for this workshop.
- Select Delete from the top right.
- Complete the application deletion process.
✅ Step-by-step directions(expand for details)
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.
-
In the AWS Management Console, click Services then select CloudFront under Networking & Content Delivery.
-
Select the distribution for the Unicorn Manager application we created in module 5 and click Disable.
-
Once the distribution is disabled, click Delete.
-
Using the Services dropdown, navigate to the S3 console under Storage.
-
Select the unicornmanager-xxx bucket and click Delete bucket. In the confirmation window enter the bucket name and click Confirm.
-
Next, using the Services dropdown navigate to the Lambda console under Compute.
-
From the functions list, select the ListUnicornRides function and use the Actions dropdown to select Delete.
-
Repeat the same operation for the ListUnicornAuthorizer function.
-
If you have deployed the pre-requisites stack before starting module 5, navigate to the CloudFormation console under Management Tools.
-
Select the WildRydes-xxx stack and use the Actions dropdown to click Delete Stack.
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
.
Delete the Cloud9 Development environment created today.
✅ Step-by-step directions
- Launch the Cloud9 console page.
- Select the environment you launched today.
- From the top navigation, select Delete
- Complete the application deletion process.