A bot deployed to AWS Cloud to remind you when the new Apple product is available to buy at your region
If you'd like to talk about Apple or share your Apple setup with us, you're welcomed to join Apple Malaysia Discord
This project contains source code and supporting files for a serverless application that you can deploy with the SAM CLI. It includes the following files and folders:
- functions - Code for the application's Lambda functions to check the value of, buy, or sell shares of a stock.
- statemachines - Definition for the state machine that orchestrates the stock trading workflow.
- template.yaml - A template that defines the application's AWS resources.
- cd to root directory
yarn build
(don't usesam build
)sam deploy
yarn watch
in root directory
The cost of running a 15s express state machine on AWS is quite high. The potential mitigation is to remove the 15s
AddressedWait
state and use a SQS queue instead.