Skip to content

Swarthmore/accessibility_check_tools

Repository files navigation

filescan-lambda

Accessibility filescan service running on AWS Lambda serverless

Installation

Prerequistes

Install

  • Copy terraform.tfvars.dist to terraform.tfvars and edit to add required information.
  • run sh create.sh to copy lambda function to AWS S3 and deploy Terraform infrastructure to AWS
  • Note URL and API Key info output

Updating

  • run sh update.sh - this will copy any Lambda function change to S3 and update Terraform.
  • URL and API key remain the same

Deleting

  • Remove any files (objects) from the S3 bucket for file upload
  • Manually remote objects from S3 deploy bucket and delete the bucket
  • run terraform destroy from the root directory of this project.

Test

Node.js

  • Set environmental variables for base URL and API Key as per output of the create.sh script:

export ACCESSIBILITY_URL=https://xxxxxxxxxx.execute-api.us-east-1.amazonaws.com/test

export ACCESSIBILITY_APIKEY=xxxxxxxxxxxxxxxxxxxxxx

  • node ./test/js/testApi.js

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published