django-bakery icon indicating copy to clipboard operation
django-bakery copied to clipboard

support for invalidating cloudfront assets after an upload

Open palewire opened this issue 8 years ago • 3 comments

palewire avatar Apr 29 '16 23:04 palewire

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.

robmoorman avatar May 11 '17 07:05 robmoorman

thanks for the info.

palewire avatar May 12 '17 03:05 palewire

Couldn't you write a trivial management command to create the invalidation through Boto? Something like this.

chrisspen avatar Sep 12 '19 01:09 chrisspen