Clean Up Resources

Delete IAM Roles and Policies

  1. Navigate to the IAM console.
  2. In the left navigation pane, choose Roles.
  3. Find the role you’ve created for this workshop and delete it. Delete IAM Role and Policies

Delete the Amazon OpenSearch Service Domain

  1. Navigate to the OpenSearch Service console

  2. Choose the domain you’ve created.

  3. Click on Delete.

    Delete OpenSearch Domain

Empty and Delete the S3 Bucket

  1. Go to the S3 console.
  2. Open the bucket you’ve created.
  3. First, empty the bucket by selecting all the files and choosing Delete. Empty and Delete S3 Bucket Empty and Delete S3 Bucket
  4. After ensuring the bucket is empty, delete the bucket itself. Empty and Delete S3 Bucket

Delete the Lambda Function

  1. Navigate to the Lambda console.

  2. Choose the function you created.

  3. Click on Actions and select Delete function.

    Delete Lambda Function

Delete the API Gateway

  1. Go to the API Gateway console.

  2. Select the API you’ve set up.

  3. From the Actions dropdown, choose Delete API.

    Delete API Gateway

Conclusion

You’ve successfully cleaned up all the resources you created during this workshop. It’s always a good practice to delete unused resources to avoid incurring unnecessary costs.