
142 Chapter 6: Serverless ETL Tenologies
Developing AWS Lambda Functions with AWS Cloud9
Cloud9 has many capabilities built in the make developing with AWS Lambda easier. ese include
debugging, importing remote lambda functions, and a wizard.
Learn how to Develop AWS Lambda functions with AWS Cloud9 in the following screencast.
Video Link: hps://www.youtube.com/wat?v=QlIPPNxd7po³⁰²
Building an API
e following code creates an API via API Gateway.
Python Lambda API Gateway Example
1 import json
2 import decimal
3
4
5 def lambda_handler(event, context):
6
7 print(event)
8 if 'body' in event:
9 event = json.loads(event["body"])
10
11 amount = float(event["amount" ...