Forked from samvera/serverless-iiif.
- Install devbox (
./bin/first-time-setup.sh) devbox shell(run this every time you need to deploy)
brew install aws-sam-cli
asdf install
yarn install- Set up a
figgy-deployAWS profile. You can get the AccessID/AccessKey fromlpass show --all Shared-ITIMS-Passwords/Figgy/FiggyAWS - Configure the profile via
aws configure --profile figgy-deploy- Set default region to us-east-1
- Set default output format to json
sam build --use-container./deploy.sh iiif-cloud stagingwill deploy the stack to staging../deploy.sh iiif-cloud productionwill deploy the stack to production.
sam build --use-container./deploy.sh libimages stagingwill deploy the stack to staging../deploy.sh libimages productionwill deploy the stack to production.
It seems that when this service goes down, errors get cached and continue to be served. So when we fix it we need to invalidate the cache
- Go to aws > CloudFront
- click the ID for iiif-cloud
- go to "invalidations" tab
- create invalidation
- use object path "/*"