AWS Lambda¶
Useful Links¶
- Building a Dynamic DNS for Route 53 using CloudWatch Events and Lambda
- AWS SAM CLI - CLI tool for building, testing, and deploying Lambda applications
Serverless Framework Configuration Example¶
To deploy a Lambda function via the Serverless Framework, configure a serverless.yml file:
service: my-python-lambda
frameworkVersion: "3"
provider:
name: aws
runtime: python3.13
region: us-east-1
functions:
hello:
handler: handler.hello
events:
- httpApi:
path: /hello
method: get
Deploy with:
Python Lambda Handler Example¶
An example API Gateway trigger handler handler.py: