Skip to content

IIIF Image API 2.1 server in an AWS Serverless Application

License

Apache-2.0, Unknown licenses found

Licenses found

Apache-2.0
LICENSE
Unknown
LICENSE.txt
Notifications You must be signed in to change notification settings

pulibrary/serverless-iiif

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

142 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

serverless-iiif

Forked from samvera/serverless-iiif.

Devbox Setup

  1. Install devbox (./bin/first-time-setup.sh)
  2. devbox shell (run this every time you need to deploy)

Alternate (non-devbox) Setup

brew install aws-sam-cli
asdf install
yarn install

Deployment

  • Set up a figgy-deploy AWS profile. You can get the AccessID/AccessKey from lpass 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

iiif-cloud

  • sam build --use-container
  • ./deploy.sh iiif-cloud staging will deploy the stack to staging.
  • ./deploy.sh iiif-cloud production will deploy the stack to production.

libimages

  • sam build --use-container
  • ./deploy.sh libimages staging will deploy the stack to staging.
  • ./deploy.sh libimages production will deploy the stack to production.

How to clear the cache

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 "/*"

About

IIIF Image API 2.1 server in an AWS Serverless Application

Resources

License

Apache-2.0, Unknown licenses found

Licenses found

Apache-2.0
LICENSE
Unknown
LICENSE.txt

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 80.3%
  • Shell 9.8%
  • HCL 9.6%
  • Makefile 0.3%