Closed SzymonKaczorowski-Kainos closed 4 years ago
Is this work for #12 ? Can we make this Lambda a post endpoint to demonstrate a good request body handler
I think the idea is to place all handlers in the /src/handler/
directory with asrc/util/
and src/client/
directory for things like a logging/dynamoDB wrappers.
Hopefully will clear this up with @sdh100shaun today :)
@sdh100shaun is this what you had envisioned?
@AnnaDodson the lambda has now been change to reflect a 'get' and 'post' handler :)
@sdh100shaun, @SzymonKaczorowski-Kainos - can you guys take a look at this PR to address issue #2 when you have time - i've added an example for a cloudwatch event. Sadly SAM CLI doesn't support testing a cloudwatch event locally via a schedule (can only be invoked manually)
@andytaylorkainos changes looks good to me :)
Can you update the description please and explain what these changes are
Can you update the description please and explain what these changes are
Done :)
Description
This PR removes the example lambda
index.ts
and replaces it with three new examples:get.ts
- an example lambda forget
requestspost.ts
- an example lambda forpost
requestscloudWatchEvent.ts
- an example lambda for CloudWatch eventsRelated issue: RTA-12 Issue #2
Type of change
Checklist: