Skip to content

sw-tools/checkin-service

Repository files navigation

Checkin Service

Allows a user to schedule a checkin based on their flight reservation, then invokes a function just before the checkin time and checks the user in.

Can be considered in a beta stage; should be monitored. If you absolutely need a really good seat on a particular flight, please babysit it and be ready to check in manually.

PR and Issue contributions are welcome.

Uses airline's API in an unsupported manner. Use at your own risk.

Deploying

  1. Set up an AWS profile on your computer called 'sw-tools'

  2. Add Chromium/Puppeteer Lambda layer:

  3. Deploy service to AWS (ensure you've got your AWS credentials configured first)

    AUTHORIZER_TOKEN=your_chosen_token npm run deploy

Scheduling a Checkin

Attributions

TODO

  • Use something like dotenv to read authorization token so that user does not have to add it to their environment manually
  • After checkin remove the associated eventBridge rule and eventBridge trigger
  • Try a publicly maintained Lambda layer for Puppeteer/Chromium (e.g. https://github.com/shelfio/chrome-aws-lambda-layer)
  • Use Serverless V3