An application that polls an API to check for an available apartment matching specific criteria.
- Lambda function is invoked by CRON
- Daytime (9am-9pm) - Every 5 minutes
- Evening (9pm-9am) - Every 15 minutes
- Lambda function executes
- Queries apartment API
- Sends 2 metrics to CloudWatch
- Total Units Available
- Units Matching Criteria
- CloudWatch Alarms Watch exist for the following conditions
- Are there any matching units?
- If so send a PagerDuty alert to notify interested party that there is a unit available
- Lambda function executing successfully?
- If not send a PagerDuty alert to notify developer that function is not executing correctly
- Lambda function being invoked?
- If not send a PagerDuty alert to notify developer that function is not executing correctly
- Are there any matching units?
This application is Terraformed. If creating from scratch, this application will upload an empty lambda function. The developer will need to upload the code afterwards.
Additional documentation lives in the docs folder.