AWS Bible Api Proxy
Go on AWS Lambda for BibleScout.App
How to get started locally and manually deploy
-
Generally follow https://docs.aws.amazon.com/lambda/latest/dg/golang-package.html#golang-package-windows
-
Upload the
.zip
file on https://us-east-2.console.aws.amazon.com/lambda/home?region=us-east-2#/functions/bible-scout-proxy?tab=code -
ℹ NOTE: Sometimes it takes a few minutes for the new code to be the code being tested, there is some kind of caching here
-
If testing works (or you want to test with the API Gateway semi integrated) go to https://us-east-2.console.aws.amazon.com/apigateway/home?region=us-east-2#/apis/dcu73qiiyi/resources/ovj0he/methods/GET and chose the Client "Test ⚡" and enter the following in the Query String
urlText=https%3A%2F%2Fdbt.io%2Faudio%2Flocation%3Fprotocol%3Dhttp%26reply%3Djson%26v%3D2
-
If this test worked it's time to deploy to the
default
stage at https://us-east-2.console.aws.amazon.com/apigateway/home?region=us-east-2#/apis/dcu73qiiyi/resources/hal2db and choose Actions > Deploy API > Deployment Stage: default -
Now the ultimate test in Postman
- GET https://dcu73qiiyi.execute-api.us-east-2.amazonaws.com/default/bible-scout-proxy?urlText=https%3A%2F%2Fdbt.io%2Faudio%2Flocation%3Fprotocol%3Dhttp%26reply%3Djson%26v%3D2
- HEADERS with
- key:
x-api-key
- value:
Genesis1-2InTheBeginningGodCreated
oreAamcrnwum9yI7J9lDPYp3zLnDrBoqLcaLKBDDjc
- key:
Roadmap
- Create json response in AWS lambda to replace Azure function app
- Create mp3 gathering endpoint