Simple website scraper demo using containerized AWS Lambda, API Gateway, S3, and Cognito User Pool Authorizer.
- lambda - Typescript code for the application's Lambda function
- lambda/tests - Unit tests
- events - Invocation events
- template.yaml - SAM template that defines the application's AWS resources
sam build --beta-features
sam deploy --g
api-lambda-test$ sam local invoke ScraperFunction --event events/event.json
api-lambda-test$ sam local start-api
api-lambda-test$ sam logs -n ScraperFunction --stack-name api-lambda-test --tail
api-lambda-test$ cd lambda
lambda$ npm install
lambda$ npm run test
aws cloudformation delete-stack --stack-name api-lambda-test