terraform-aws-serverless-static-wordpress
terraform-aws-serverless-static-wordpress copied to clipboard
Automatically invalidate CloudFront upon WP2Static S3 Deploy
The WP2Static S3 addon allows invaliding CloudFront distributions when deploying. An invalidation would make index.html (and other likely cached paths) immediately update when new content is posted.
I think it would take the following:
- Update the ECS task execution role to allow invalidating the CloudFront distribution created by the
cloudfrontmodule. - Either: a. Document manual configuration changes for the S3 Deployment add-on (see also #69); or, b. Automatically update the configuration for the user (see #15)