DOI-USGS / asc-public-docs

Public facing documentation for ASC
Other
1 stars 7 forks source link

Create lambda that can invalidate parts of the website on update #13

Closed Kelvinrr closed 6 months ago

Kelvinrr commented 10 months ago

Cloudfront caching helps save money but can also prevent changes from being published right away. We can avoid this by creating an invalidation of the files when an MR is merged via a lambda. lambdas can be setup to trigger when there is an update to the bucket so it doesn't need to run on our CI/CD pipelines.

Since going public, when we push changes they are seen immediately so it might be worth investigating if the cache is still being used.

jrcain-usgs commented 6 months ago

We have a cloudfront and route53 for docs.astrogeology.usgs.gov that looks like it only works internally. Should that subdomain be made publicly accessible, or maybe be removed? The public address is astrogeology.usgs.gov/docs

jrcain-usgs commented 6 months ago

The part of the setup that is important here seems to be out of the hands of the dev team. Closing this, will leave related concerns up to those who manage the astrogeology.usgs.gov domain.