-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions
34
content/posts/en/20230207-use-aws-lambda-as-api-endpoint/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
+++ | ||
author = "DUAN DAHAI" | ||
title = "Use AWS lambda as api endpoint" | ||
date = "2023-02-07" | ||
description = "Use AWS lambda as api endpoint" | ||
tags = [ | ||
"AWS", | ||
"Lambda", | ||
"API" | ||
] | ||
categories = [ | ||
"solutions" | ||
] | ||
+++ | ||
|
||
[AWS Lambda](https://docs.aws.amazon.com/lambda/latest/dg/welcome.html) + [API Gateway](https://docs.aws.amazon.com/apigateway/latest/developerguide/welcome.html) can easily and quickly build your api servcie. | ||
You can find the the introduce and Benefits on aws documents. | ||
I will just show you how eazy to build a api in this article. | ||
|
||
|
||
### Create a python lambda by your fastest way | ||
![1-lamda](1-lamda.png) | ||
|
||
### Create a HTTP API by AWS API Gateway | ||
![2-API](2-API.png) | ||
|
||
### when creating the HTTP API, use the default stage and default settings | ||
![3-stage](3-stage.png) | ||
|
||
### add a test rout linked to python lambda as the endpoint | ||
![4-rout](4-rout.png) | ||
|
||
### then test your api in browser, connected backend lambda successfully! | ||
![5-test](5-test.png) |