Eximchain / terraform-aws-dappbot

Terraform infrastructure to run ABI Clerk
Other
0 stars 1 forks source link

Invalidate CloudDront Distribution After Build is complete #19

Closed Lsquared13 closed 5 years ago

Lsquared13 commented 5 years ago

Currently, the CloudFront invalidation is created during the update operation. If that processes before the build, and someone accesses it before the build, it could re-cache the old content.

We should have the invalidation trigger after the pipeline build is complete. We could trigger either on the pipeline completion (If that's possible) or on modifications to the Dapp S3 bucket.

john-osullivan commented 5 years ago

Closing this issue, as we're no longer using invalidations in our update strategy. Instead the post-build action will trigger an update to the Cloudfront distro's default root object, instantly triggering a cache miss. This is both cheaper and faster than using invalidations. Progress on the new strategy is on this other issue: https://github.com/Eximchain/abi-clerk-lambda/issues/38