app name
trans-query-account-faas
description
- receives lambda invoke from graphql resolver
- queries transactions in postgres by account
- responds with transactions to graphql resolver
development
- save creds in
~/.aws/credentials
to access lambda and postgres - set desired values for
TEST_ACCOUNT
, TEST_TRANSACTION_ID
, TEST_EVENT
and TEST_SENDER_ACCOUNT
variables in ./makefile
make test-local
to get postgres creds from secrets manager, then run code locally
testing
make test-unit
for unit testsmake test-cover
to measure unit test coverage- complete steps 1 & 2 in
development
section above to prep for integration tests make deploy ENV=dev
to manually deploy to dev envmake test-integration ENV=dev
to set up data in postgres, test lambda, then tear down data in dev env
deploy
push commit OR make deploy ENV=dev
to manually deploy to dev env
config
see infrastructure/terraform/aws/modules/environment/trans-query-account-faas.tf
lambda environment variables