django-bakery
django-bakery copied to clipboard
support for invalidating cloudfront assets after an upload
We used this already in Wagtail: http://docs.wagtail.io/en/v1.10/reference/contrib/frontendcache.html#amazon-cloudfront. Reference: https://github.com/wagtail/wagtail/blob/01e891d0c458b8eaf46fa7ddf19900bfd12c0a31/wagtail/contrib/wagtailfrontendcache/backends.py#L109
The trickiest part is so support multiple CloudFront distributions depending the url/site.
thanks for the info.
Couldn't you write a trivial management command to create the invalidation through Boto? Something like this.