We will proceed to delete the resources in the following order:
When you have finished with this workshop, remember to clean up all those AWS resources that you created using AWS CloudFormation.
Follow the steps below for clean up:
You would need to manually go and empty the S3Bucket athena-spark-workshop created by the CloudFormation as S3 bucket can only be deleted by CloudFormation once it’s empty.
Use the AWS CloudFormation console or AWS CLI to delete the stack named Athena-Spark-Workshop.
Delete VPC endpoint
Delete Database in RDS
Delete Lambda function
Delete IAM Role of Lambda
You would need to manually go and empty the S3Bucket created for Athena then delete it.