Skip to content

cronning9/ephemeral-journal-lambda

Repository files navigation

README

Deploying

We deploy via GitHub Actions. See Pipeline Configuration

TODOS:

  • 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.

Commands:

  • 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.

To test with API Gateway locally:

# 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published