A Lambda function to collect financial data for the holdings received from SQS queue, and store the collected data to S3.
Set AWS Credentials using environment variables
Install Docker & Docker Compose
Then,
docker-compose build
docker-compose run --rm test
docker-compose run --rm dev rake deploy
The deploy rake task deploys the lambda function to AWS with below steps,
- Create the lambda package to
dist/lambda.zip
with the source code and dependencies - Deploy the S3 bucket cloudformation stack to AWS to store the lambda package
- Upload the lambda package to the S3 bucket
- Deploy the S3 bucket cloudformation stack to AWS to store the collected holdings data
- Deploy the lambda function cloudformation stack to AWS
- Update the lambda function code, so the lambda function can be updated even there is no cloudformation change