Clean Up Resources

In workshop 136, we will create all the resources again with AWS SAM. Clean up the resources of workshop 133, 134 and this workshop with the steps below:

  1. Delete the REST API
  • Open the API Gateway console
  • Select the fcaj-dms-api API
  • Click Delete
  • Enter confirm and click Delete
  1. Delete the Lambda function
  • Open the AWS Lambda console
  • Select the list_documents function
  • Click Actions
  • Select Delete
  • Enter delete and click Delete
  • Do the same for the two functions upload_document and delete_document
  1. Delete the DynamoDB table
  • Open the DynamoDB console
  • Select Tables in the left menu
  • Select the Documents table
  • Click Delete
  • Enter delete and click Delete table
  1. Delete the S3 bucket that hosts the web application
  • Open the S3 console
  • Select the fcajdmswebstore bucket
  • Click the Empty button
  • Enter permanently delete and click Empty
  • Select the fcajdmswebstore bucket again, click the Delete button
  • Enter the bucket name and click Delete bucket
  1. Delete the Amplify sandbox of workshop 134
  • Run the command below in the root folder of the FCAJ-Serverless-DMS project:
npx ampx sandbox delete
  • Enter y to confirm the deletion.
  • Wait until the terminal shows [Sandbox] Finished deleting. This command deletes the Cognito User Pool, the Identity Pool, the S3 bucket that stores user files (including the files inside) and the IAM roles created by Amplify.