fn

Lambda

Compute & WebAWS
General

General information about the service.

Description

AWS Lambda lets you run code without provisioning or managing servers, paying only for compute time consumed.

Service Namespace

AWS::Lambda::Function

ARN Pattern

arn:aws:lambda:{region}:{account}:function:{function-name}

References

Chat

Powered by AI

Talk to this service to learn more about it.

Suggested questions:

Naming

The conventions, rules, and restrictions for naming this service.

Naming Convention

fn-

Length

1-64

Valid Characters

Letters, numbers, hyphens, underscores

Scope

region

Code

Deploy your infrastructure as code using your preferred tooling.

Official DocumentationTerraform
terraform
1resource "aws_lambda_function" "main" {
2 filename = "lambda.zip"
3 function_name = "fn-${var.environment}"
4 role = aws_iam_role.lambda.arn
5 handler = "index.handler"
6 runtime = "nodejs18.x"
7}
Utilities

Utilities to support app deployment or configuration.