Accessibility filescan service running on AWS Lambda serverless
- Terraform
- nodejs 12.X
- AWS credentials set up in AWS config file
- php (optional)
- Copy
terraform.tfvars.dist
toterraform.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
- run
sh update.sh
- this will copy any Lambda function change to S3 and update Terraform. - URL and API key remain the same
- 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.
- 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