Skip to content

A project that demonstrates the use of AWS Batch to create IIIF tiles and manifests

Notifications You must be signed in to change notification settings

VTUL/aws-batch-iiif-generator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aws-batch-iiif-generator

Workflow

Overview

  1. Upload task file to the batch bucket
  2. Batch bucket trigger a lambda function
  3. Lambda function read the content in the task file and submit a batch job
  4. Each batch job generates tiles and manifests from the original image and upload to the target S3 bucket

Batch Job

  1. Pull raw original files from the S3 bucket
  2. Generate tiles and manifests
  3. Upload to target S3 bucket

Batch

S3

  • SRC_BUCKET: For raw images and CSV files to be processed
    • Raw image files
    • CSV files
  • AWS_BUCKET_NAME: For saving tiles and manifests files
  • Batch_Bucket: For task files

Lambda

  • lambda-example.py: Submit a batch job when a task file is upload to a S3 bucket
    • Add S3 trigger:
      • Event type: ObjectCreated

IAM

  • lambda_function_role: Append Read access to S3 buckets and permission to submit a batch job policy
  • ecsInstanceRole: Append Read/Write access to S3 buckets policy

Task File

    jobName: Batch job name
    jobQueue: Batch job queue name
    jobDefinition: Batch job definition name
    command: "./createiiif.sh"
    AWS_REGION: AWS region, e.g. us-east-1
    SRC_BUCKET: S3 bucket which stores the images need to be processed. (Source S3 bucket)
    AWS_BUCKET_NAME: S3 bucket which stores the generated tile images and manifests files. (Target S3 bucket)
    ACCESS_DIR: Path to the image folder under the SRC_BUCKET
    CSV_NAME: A CSV file with title and description of the images
    CSV_PATH: Path to the csv folder under the SRC_BUCKET
    DEST_BUCKET: Folder to store the generated tile images and manifests files under AWS_BUCKET_NAME
    DEST_URL: Root URL for accessing the manifests e.g. https://s3.amazonaws.com/AWS_BUCKET_NAME
    UPLOAD_BOOL: upload tiles and manifests to S3 (true|false)

IIIF S3 Docker image

About

A project that demonstrates the use of AWS Batch to create IIIF tiles and manifests

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 84.0%
  • Shell 11.4%
  • Dockerfile 4.6%