Clean Up
Deleting via Amplify
Amplify can do a pretty good job of removing most of the cloud resources we have provisioned for this workshop (just by attempting to delete the CloudFormation nested stack it provisioned). However, it will refuse to delete a few items, which we will manually take care of as well.
- From the kendra-poc directory, run the following command and press Enter to confirm the deletion.
- Wait a few minutes while Amplify deletes most of our resources.
A small bit of manual cleanup
- Delete the Lambda function
- Delete Kendra index
- Delete the S3 bucket that was created as the datasource
- Delete the IAM roles and policies you created
Delete S3 Buckets
The S3 Buckets that Amplify created will not be automatically deleted. To delete these buckets:
- Open the S3 console
- Click the Date created column to sort the buckets with the newest ones on top
- For each kendrapoc* bucket, click the row (not the name itself), click the Delete bucket button, then copy/paste the bucket name to confirm the deletion.
Deleting the Cloud9 Workspace
- Go to your Cloud9 Environment
- Select the environment you created for this workshop and pick Delete
- Type Delete into the confirmation box and click Delete