damoncoo / golang-gin-app-on-aws-lambda

Take a URL shortener application written using Gin, and run it as a serverless Lambda function.

Home Page:https://community.aws/tutorials/golang-and-aws-lambda/02-golang-gin-app-on-aws-lambda

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Run a Golang Gin application as a Serverless AWS Lambda function

One of the previous blog posts (Can I run existing Go applications on AWS Lambda?) introduced you to the AWS Lambda Go API Proxy, and how it's framework/package specific adapter implementations (for gorilla/mux, echo and net/http) allow you to run existing Go applications as AWS Lambda functions fronted by Amazon API Gateway.

How does the Gin adapter work

The AWS Lambda Go API Proxy also supports the Gin, which one of the most popular Go web frameworks! This blog post demonstrates how take an existing URL shortener service written using the Gin framework, and run it as a serverless AWS Lambda function. Instead of using AWS SAM, we will change things up a bit and use the AWS CDK to deploy the solution. AWS CDK is a framework that lets you define your cloud infrastructure as code in one of its supported programming and provision it through AWS CloudFormation.

Security

See CONTRIBUTING for more information.

License

This library is licensed under the MIT-0 License. See the LICENSE file.

About

Take a URL shortener application written using Gin, and run it as a serverless Lambda function.

https://community.aws/tutorials/golang-and-aws-lambda/02-golang-gin-app-on-aws-lambda

License:MIT No Attribution


Languages

Language:Go 100.0%