Eximchain / terraform-aws-dappbot

Terraform infrastructure to run ABI Clerk
Other
0 stars 1 forks source link

Created new public /test/view endpoint for DappHub #33

Closed john-osullivan closed 5 years ago

john-osullivan commented 5 years ago

The new Lambda function is actually from the same codebase as the old one, the zip files are the same. The key difference is that while the DappBot API uses index.handler, the DappHub View uses index.viewHandler.

Beyond the Lambda function, I also had to create a new API Gateway resource, method, and integration.

One remaining tweak is that we ought to create a set of permissions which exclusively allow reading the DynamoDB and give that to this function. Right now it piggybacks on the same ones as the API, and that's some dangerous PoC stuff