ericop / aws-bible-api-proxy

a pass through AWS Lambda function that adds an ApiKey for BibleScout.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AWS Bible Api Proxy

Go on AWS Lambda for BibleScout.App

Open in Gitpod

How to get started locally and manually deploy

  1. Generally follow https://docs.aws.amazon.com/lambda/latest/dg/golang-package.html#golang-package-windows

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

  3. Test it at https://us-east-2.console.aws.amazon.com/lambda/home?region=us-east-2#/functions/bible-scout-proxy?tab=testing

    NOTE: Sometimes it takes a few minutes for the new code to be the code being tested, there is some kind of caching here

  4. 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
    
  5. 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

  6. Now the ultimate test in Postman

Roadmap

  • Create json response in AWS lambda to replace Azure function app
  • Create mp3 gathering endpoint

About

a pass through AWS Lambda function that adds an ApiKey for BibleScout.app


Languages

Language:Go 100.0%