This is a scrappy script I put together to invalidate AWS CloudFront paths that have been uploaded to AWS S3.
If you host a static website on Amazon S3 and CloudFront, you need to create a CloudFront cache invalidation every time you upload files to Amazon S3.