10. Clean up resources

And don’t forget that after finishing the practice, we should clean up and remove the resources we created during the workshop to avoid potential costs.

Terminate EC2 instance

Go back to the EC2 console, select the instance we created. Expand Instance state and choose Terminate.

10.1

10.2

10.3

Remove IAM role

Go back to the IAM console, enter Roles, find the role we created, and click Delete.

10.4

10.5

10.6

Remove user pool

Go back to the Cognito console, select the User Pool we used, and click Delete.

10.7

Check Delete Cognito domain … and Deactivate deletion protection. Re-enter the pool name and delete.

10.8

10.9

Remove DynamoDB table

Go back to the DynamoDB console, select the table we created, and click Delete.

10.10

10.11

Wait a moment for AWS to delete the table.

10.12

Remove Lambda function

Go back to the Lambda console, select the functions we created, expand Actions, and choose Delete. Since we created 2 Lambda functions in this tutorial, we need to delete both.

10.13

10.14

10.15