Remove multiple CloudFront distributions with “aws cli”

Originally published at:

If you are working with AWS CloudFront, you might have a large number of CloudFront distributions sitting there. It’s not easy to remove them. You have to disable each CloudFront distribution first, wait for a half-hour, then remove it. This post shows you how to automate this process in the command line.