Can I invalidate my Cloudfront distribution after deploy?
Beanstalk can invalidate your CloudFront distribution after every deployment when using Amazon S3 deployments. This ensures that Amazon CloudFront servers always have the most recent content. If you have not already, you can read about deploying to Amazon S3 in a separate help article.
How to invalidate CloudFront distribution
If you use Beanstalk to deploy files to an S3 bucket, and you also use that bucket as an origin for your Cloudfront Distribution, you can use the CloudFront Invalidation feature in Beanstalk to automatically invalidate that distribution.
When setting up an Amazon S3 deployment in Beanstalk, specify a valid CloudFront distribution ID in the server settings:
Beanstalk will take care of the rest. After each deployment it will send a list of files to invalidate to your CloudFront distribution. This will ensure that your CDN always serves the latest versions of your files. After the invalidation was initiated by Beanstalk you can track it’s progress in the CloudFront Management Console.