Skip to content

Instantly share code, notes, and snippets.

@garystafford
Last active July 25, 2022 20:49
Show Gist options
  • Save garystafford/daf246dbea19b279080d5295d1799fec to your computer and use it in GitHub Desktop.
Save garystafford/daf246dbea19b279080d5295d1799fec to your computer and use it in GitHub Desktop.
# delete applicatiom, cluster, and ec2 client
aws kafka delete-cluster --cluster-arn <your_msk_serverless_cluster_arn>
aws emr-serverless delete-application --application-id <your_application_id>
aws ec2 terminate-instances --instance-ids <your_ec2_instance_id>
# all objects (including all object versions and delete markers) in the bucket
# must be deleted before the bucket itself can be deleted.
aws s3api delete-bucket --bucket <your_s3_bucket>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment