Skip to content

Simple website scraper demo using containerized AWS Lambda, API Gateway, S3, and Cognito User Pool Authorizer.

Notifications You must be signed in to change notification settings

brute-force/api-lambda-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

api-lambda-test

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

Deploy

sam build --beta-features
sam deploy --g

Test locally

api-lambda-test$ sam local invoke ScraperFunction --event events/event.json
api-lambda-test$ sam local start-api

Fetch, tail, and filter Lambda function logs

api-lambda-test$ sam logs -n ScraperFunction --stack-name api-lambda-test --tail

Unit tests

api-lambda-test$ cd lambda
lambda$ npm install
lambda$ npm run test

Cleanup

aws cloudformation delete-stack --stack-name api-lambda-test

About

Simple website scraper demo using containerized AWS Lambda, API Gateway, S3, and Cognito User Pool Authorizer.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published