Skip to content

A Lambda function to collect financial data for the holdings retrieved from SQS queue, and store the collected data to S3

License

Notifications You must be signed in to change notification settings

johnwei2019/holdings-data-collector

Folders and files

NameName
Last commit message
Last commit date
Apr 21, 2019
Apr 21, 2019
Apr 20, 2019
Apr 21, 2019
Apr 20, 2019
Apr 13, 2019
Apr 20, 2019
Apr 7, 2019
Apr 14, 2019
Apr 6, 2019
Apr 20, 2019
Apr 15, 2019
Apr 20, 2019
Apr 20, 2019
Apr 5, 2019
Apr 20, 2019
Apr 7, 2019
Apr 14, 2019
Apr 20, 2019

Repository files navigation

holdings-data-collector

A Lambda function to collect financial data for the holdings received from SQS queue, and store the collected data to S3.

Setup project

Config access to AWS

Set AWS Credentials using environment variables

Install Docker

Install Docker & Docker Compose

Then,

docker-compose build

Run tests

docker-compose run --rm test

Deploy to AWS

docker-compose run --rm dev rake deploy

Deployment details

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

About

A Lambda function to collect financial data for the holdings retrieved from SQS queue, and store the collected data to S3

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published