This project contains a lambda function to fetch investment values from different sources.
- Rename
.env.templateto.envand update it with your actual secret keys.
To deploy the lambda function, run the following command:
npm --prefix ./lambda run release && source .env && terraform -chdir=terraform applyThis will create the necessary AWS resources and deploy the lambda function.
You can invoke the lambda function with an HTTP GET request. The request should include query parameters for the investment code, investment source, and investment type.
For example:
curl "https://your-api-gateway-url.com/prod/investment_api?investment_code=abc&investment_source=source1"