Difference between revisions of "AWS Lambda"
Jump to navigation
Jump to search
↑ https://en.wikiversity.org/wiki/Cloud_computing/Amazon_Web_Services/AWS_Lambda
Line 20: | Line 20: | ||
== Python Example == | == Python Example == | ||
− | import json | + | [[import json]] |
def lambda_handler(event, context): | def lambda_handler(event, context): |
Revision as of 13:22, 27 August 2021
wikipedia:AWS Lambda is an event-driven, serverless computing platform. It is a computing service that runs code in response to Events and automatically manages the computing resources required by that code. It was introduced in November 2014.[1] Other similar solutions in the market are Google Cloud functions, Oracle Cloud Fn and Azure Functions.
VPC configuration for AWS Lambda function is optional unless your user permissions require you to configure a VPC.
Free tier
The AWS Lambda free usage tier includes 1M free requests per month and 400,000 GB-seconds (1GB-111 hours) of compute time per month.
Examples
exports.handler = async (event) => { const response = { statusCode: 200, body: JSON.stringify('Hello from Lambda!'), }; return response; };
Python Example
import json def lambda_handler(event, context): # TODO implement return { 'statusCode': 200, 'body': json.dumps('Hello from Lambda!') }
Related terms
- AWS API Gateway
- Amazon CloudWatch Lambda Insights
- Functions and applications
- AWS::Lambda
See also
- AWS Lambda:
aws lambda
[list-functions | create-function | update-function-code | create-alias ]
,AWS::Lambda::Function
- AWS Chalice microframework for writing serverless apps in python
- Serverless computing, Serverless on AWS, AWS Lambda, Azure Functions,
sam
. AWS Proton, Serverless, Knative, DigitalOcean Functions - Cloud: cloud providers, cloud timeline, serverless computing, AWS, Azure, Google Cloud, DigitalOcean, IBM Cloud, Alibaba CloudAlibaba, Tencent, Baidu, VPC, Cloud Foundry, Snowflake, Huawei Cloud, Oracle Cloud, CISPE, CIPS, Free trial, Cloudera, Vantage.sh, Render
Advertising: