Difference between revisions of "AWS Lambda"
Jump to navigation
Jump to search
↑ https://aws.amazon.com/about-aws/whats-new/2014/11/13/introducing-aws-lambda/
↑ https://en.wikiversity.org/wiki/Cloud_computing/Amazon_Web_Services/AWS_Lambda
m (Welcome moved page /AWS Lambda/ to AWS Lambda) |
|||
(59 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | '''AWS Lambda''' is an event-driven, serverless computing platform. It is a computing service that runs code in response to [[ | + | '''[[wikipedia:AWS Lambda]]''' ([[AWS timeline|Nov 2014]]) <ref>https://aws.amazon.com/about-aws/whats-new/2014/11/13/introducing-aws-lambda/</ref> 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]].<ref>https://en.wikiversity.org/wiki/Cloud_computing/Amazon_Web_Services/AWS_Lambda</ref> |
Other similar solutions in the market are [[Google Cloud functions]], [[Oracle Cloud Fn]] and [[Azure Functions]]. | 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 == | ||
+ | <pre> | ||
+ | exports.handler = async (event) => { | ||
+ | const response = { | ||
+ | statusCode: 200, | ||
+ | body: JSON.stringify('Hello from Lambda!'), | ||
+ | }; | ||
+ | return response; | ||
+ | }; | ||
+ | </pre> | ||
+ | |||
+ | == Python Example == | ||
+ | |||
+ | [[import json]] | ||
+ | |||
+ | def [[lambda_handler]](event, context): | ||
+ | # TODO implement | ||
+ | return { | ||
+ | 'statusCode': 200, | ||
+ | 'body': json.dumps('Hello from Lambda!') | ||
+ | } | ||
+ | |||
+ | == Rotation by Lambda function == | ||
+ | * https://docs.aws.amazon.com/secretsmanager/latest/userguide/rotate-secrets_lambda.html | ||
+ | { | ||
+ | "Step" : "request.type", | ||
+ | "SecretId" : "string", | ||
+ | "ClientRequestToken" : "string" | ||
+ | } | ||
+ | |||
+ | == Activities == | ||
+ | * [[AWS Config]]: <code>[[lambda-function-public-access-prohibited]]</code> | ||
+ | |||
+ | == Related terms == | ||
+ | * [[AWS API Gateway]] | ||
+ | * [[Amazon CloudWatch Lambda Insights]] | ||
+ | * [[Cloudformation]]: [[AWS::Lambda]] | ||
+ | * <code>[[aws elbv2 create-target-group]] --target-type [ [[instance]] | [[ip]] | [[lambda]] ] </code> | ||
+ | * [[AWS Step Functions]] | ||
+ | * [[DigitalOcean Functions]] | ||
+ | * [[Cloudflare Workers]] (Sep 2017) | ||
+ | * [[AWS Secrets Manager]] | ||
+ | * [[Terraform resource]]: <code>[[aws_lambda_function]]</code> | ||
+ | * [[Terraform resource]]: <code>[[aws_lambda_event_source_mapping]]</code> | ||
+ | |||
+ | * [[AWS Chalice]] microframework for writing serverless apps in [[python]] | ||
+ | * [[Cloudtrail]]: [[Logging All Lambda Function Invocations By Using Basic Event Selectors]] | ||
== See also == | == See also == | ||
− | * | + | * {{aws lambda}} |
+ | * {{AWS Lambda}} | ||
+ | * {{serverless}} | ||
+ | |||
[[Category:Computing]] | [[Category:Computing]] | ||
[[Category:Internet]] | [[Category:Internet]] | ||
+ | [[Category:AWS]] |
Latest revision as of 12:41, 9 October 2024
wikipedia:AWS Lambda (Nov 2014) [1] 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.[2] 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.
Contents
Free tier[edit]
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[edit]
exports.handler = async (event) => { const response = { statusCode: 200, body: JSON.stringify('Hello from Lambda!'), }; return response; };
Python Example[edit]
import json def lambda_handler(event, context): # TODO implement return { 'statusCode': 200, 'body': json.dumps('Hello from Lambda!') }
Rotation by Lambda function[edit]
{ "Step" : "request.type", "SecretId" : "string", "ClientRequestToken" : "string" }
Activities[edit]
Related terms[edit]
- AWS API Gateway
- Amazon CloudWatch Lambda Insights
- Cloudformation: AWS::Lambda
aws elbv2 create-target-group --target-type [ instance | ip | lambda ]
- AWS Step Functions
- DigitalOcean Functions
- Cloudflare Workers (Sep 2017)
- AWS Secrets Manager
- Terraform resource:
aws_lambda_function
- Terraform resource:
aws_lambda_event_source_mapping
- AWS Chalice microframework for writing serverless apps in python
- Cloudtrail: Logging All Lambda Function Invocations By Using Basic Event Selectors
See also[edit]
- AWS Lambda:
aws lambda
[list-functions | create-function | update-function-code | create-alias ]
,AWS::Lambda::Function
- AWS Lambda,
aws lambda
, AWS::Lambda,lambda handler
- Serverless computing, Serverless on AWS, AWS Lambda, Azure Functions,
sam
. AWS Proton, Serverless, Knative, DigitalOcean Functions
Advertising: