Spaces:
No application file
No application file
Commit
·
fca82e9
1
Parent(s):
fd30e2d
Meu readme
Browse files
README.md
CHANGED
|
@@ -9,4 +9,34 @@ license: mit
|
|
| 9 |
short_description: Exemplo básico de função AWS Lambda em Python
|
| 10 |
---
|
| 11 |
|
| 12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
short_description: Exemplo básico de função AWS Lambda em Python
|
| 10 |
---
|
| 11 |
|
| 12 |
+
# <h1 align="center"><font color="gree">Simple AWS Lambda Function Example</font></h1>
|
| 13 |
+
|
| 14 |
+
<font color="pink">Senior Data Scientist.: Dr. Eddy Giusepe Chirinos Isidro</font>
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+

|
| 18 |
+
|
| 19 |
+
A imagem abaixo mostra a `Função Lambda` criada no `console AWS`. Nessa imagem adicionamos uma função `random_drink` que retorna uma bebida aleatória (Função simples para exemplificar o uso da AWS Lambda).
|
| 20 |
+
|
| 21 |
+

|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
Depois de `Testar` e fazer o `Deploy` da função, vamos usar a `EndPoint` no `Browser`, no `Postman` e no terminal via `Curl` para testar a função:
|
| 25 |
+
|
| 26 |
+
* Terminal:
|
| 27 |
+
|
| 28 |
+
```bash
|
| 29 |
+
curl https://Mx24gtabcd.execute-api.us-east-1.amazonaws.com/default/RandomDrinkFunction
|
| 30 |
+
```
|
| 31 |
+
|
| 32 |
+
* Postman:
|
| 33 |
+
|
| 34 |
+

|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
|
| 39 |
+
|
| 40 |
+
|
| 41 |
+
Thank God 🤓!
|
| 42 |
+
|