We deploy via GitHub Actions. See Pipeline Configuration
- Figure out how to run server locally, so I can test from Postman etc
- New event to create new journal entries -- based on
eventType
within the event object.
aws cloudformation validate-template --template-body file://template.yaml
yarn start:local
yarn build
DEPRECATED - Bundles up all the relevant files into a .zip, for upload to AWS Lambda console. _This will break the lambda application, which was created via the GitHub Actions. If you use this method, CD will break until you delete the entire application manually from the AWS Console.
# run API Gateway process in one terminal window
sam local start-api
# CURL in separate terminal window
curl -X POST http://127.0.0.1:3000/Entry/Read -H "Content-Type: application/json" -d '{"requestType": "readFile", "bucketName": "ephemeral-journal-bkt", "objectKey": "test.txt" }' --verbose