Cleanup

Delete all resources after completing the workshop to avoid unexpected charges on your AWS bill.

Delete resources in this order to avoid dependency errors.


1. Delete API Gateway

  1. Go to API Gateway ConsoleAPIs
  2. Select workshop-apiActionsDelete
  3. Confirm deletion

2. Delete Lambda functions

  1. Go to Lambda ConsoleFunctions
  2. Select loginFunctionActionsDelete → confirm
  3. Select getSongsFunctionActionsDelete → confirm

3. Delete DynamoDB table

  1. Go to DynamoDB ConsoleTables
  2. Select songsDelete → type confirmDelete

4. Delete Cognito User Pool

  1. Go to Cognito ConsoleUser pools
  2. Select workshop-poolDelete → type the pool name to confirm → Delete

5. Delete IAM Role

  1. Go to IAM ConsoleRoles
  2. Search for lambda-workshop-role → select it → Delete → confirm

6. Delete CloudWatch Log Groups (optional)

Lambda automatically creates log groups. They are low cost but you can clean them up:

  1. Go to CloudWatch ConsoleLog groups
  2. Search for /aws/lambda/loginFunction → select → ActionsDelete log group
  3. Repeat for /aws/lambda/getSongsFunction

Verify

After deleting, confirm in each console that the resources are gone:

  • API Gateway → no workshop-api
  • Lambda → no loginFunction or getSongsFunction
  • DynamoDB → no songs table
  • Cognito → no workshop-pool
  • IAM → no lambda-workshop-role