API Gateway V1 example of ridgenative
It is a saying hello example on API Gateway V1.
$ curl -F name=shogo https://xxxxxxx.execute-api.ap-northeast-1.amazonaws.com/Prod/hello
RUN LOCALLY
$ go run main.go
$ curl -F name=shogo http://localhost:8080/hello
Hello shogo
Run on AWS Lambda with API Gateway
template.yaml is AWS Serverless Application Model template file.
You can run this sample on AWS with API gateway proxy integration.
$ ./deploy.sh $YOUR_S3_BUCKET_NAME $YOUR_STACK_NAME
$ curl -F name=shogo https://$API_ID.execute-api.$REGION.amazonaws.com/Prod/hello
Hello shogo