wellcomecollection / platform-infrastructure

:building_construction: Infrastructure for the Wellcome Digital Platform
MIT License
24 stars 8 forks source link

Further updates to iiif-stage and iiif-test CloudFront config for iiif-auth2 #404

Closed donaldgray closed 10 months ago

donaldgray commented 10 months ago

What's changing and why?

This PR extends changes made via #402.

After testing deployed DLCS it became apparent that the CloudFront origin paths needed to be altered.

In addition to this the lambda@edge function needed some slight alterations to allow us to handle incoming paths correctly. It looks like the same lambda is used for all envs, this change should be safe to apply as there will be no prod requests that match /^\/auth\/v2\/.+/ as this is a new path.

terraform plan diff