Difference between revisions of "AWS Lambda"

From wikieduonline
Jump to navigation Jump to search
 
Line 30: Line 30:
  
 
== Rotation by Lambda function ==
 
== Rotation by Lambda function ==
 +
* https://docs.aws.amazon.com/secretsmanager/latest/userguide/rotate-secrets_lambda.html
 
  {
 
  {
 
     "Step" : "request.type",
 
     "Step" : "request.type",
Line 35: Line 36:
 
     "ClientRequestToken" : "string"
 
     "ClientRequestToken" : "string"
 
     }
 
     }
 
  
 
== Related terms ==
 
== Related terms ==

Latest revision as of 09:13, 17 June 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.

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"
    }

Related terms[edit]

See also[edit]

  • 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
  • Advertising: