Lambda Function

AWS Lambda Function is a serverless compute resource that runs code in response to events without provisioning or managing servers. It supports multiple runtimes, scales automatically, and charges only for execution time. Functions can be triggered by AWS services, HTTP requests, or custom events, making it ideal for event-driven applications, automation, and backend services.

aws.lambda_function

Fields

TitleIDTypeData TypeDescription
_keycorestring
account_idcorestring
architecturescorearray<string>The instruction set architecture that the function supports. Architecture is a string array with one of the valid values. The default architecture value is x86_64.
code_sha256corestringThe SHA256 hash of the function's deployment package.
code_sizecoreint64The size of the function's deployment package, in bytes.
dead_letter_configcorejsonThe function's dead letter queue.
descriptioncorestringThe function's description.
environmentcorejsonThe function's environment variables. Omitted from CloudTrail logs.
ephemeral_storagecorejsonThe size of the function's /tmp directory in MB. The default value is 512, but can be any whole number between 512 and 10,240 MB. For more information, see Configuring ephemeral storage (console).
file_system_configscorejsonConnection settings for an Amazon EFS file system.
function_arncorestringThe function's Amazon Resource Name (ARN).
function_namecorestringThe name of the function.
function_url_configscorejsonA list of function URL configurations.
handlercorestringThe function that Lambda calls to begin running your function.
image_config_responsecorejsonThe function's image configuration values.
kms_key_arncorestringThe ARN of the Key Management Service (KMS) customer managed key that's used to encrypt the following resources: The function's environment variables. The function's Lambda SnapStart snapshots. When used with SourceKMSKeyArn, the unzipped version of the .zip deployment package that's used for function invocations. For more information, see Specifying a customer managed key for Lambda. The optimized version of the container image that's used for function invocations. Note that this is not the same key that's used to protect your container image in the Amazon Elastic Container Registry (Amazon ECR). For more information, see Function lifecycle. If you don't provide a customer managed key, Lambda uses an Amazon Web Services owned key or an Amazon Web Services managed key.
last_modifiedcorestringThe date and time that the function was last updated, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).
last_update_statuscorestringThe status of the last update that was performed on the function. This is first set to Successful after function creation completes.
last_update_status_reasoncorestringThe reason for the last update that was performed on the function.
last_update_status_reason_codecorestringThe reason code for the last update that was performed on the function.
layerscorejsonThe function's layers.
logging_configcorejsonThe function's Amazon CloudWatch Logs configuration settings.
master_arncorestringFor Lambda@Edge functions, the ARN of the main function.
memory_sizecoreint64The amount of memory available to the function at runtime.
package_typecorestringThe type of deployment package. Set to Image for container image and set Zip for .zip file archive.
policiescorejson
policycorejsonThe resource-based policy.
provisioned_concurrency_configscorejsonA list of provisioned concurrency configurations.
revision_idcorestringThe latest updated revision of the function or alias.
rolecorestringThe function's execution role.
runtimecorestringThe identifier of the function's runtime. Runtime is required if the deployment package is a .zip file archive. Specifying a runtime results in an error if you're deploying a function using a container image. The following list includes deprecated runtimes. Lambda blocks creating new functions and updating existing functions shortly after each runtime is deprecated. For more information, see Runtime use after deprecation. For a list of all currently supported runtimes, see Supported runtimes.
runtime_version_configcorejsonThe ARN of the runtime and any errors that occured.
signing_job_arncorestringThe ARN of the signing job.
signing_profile_version_arncorestringThe ARN of the signing profile version.
snap_startcorejsonSet ApplyOn to PublishedVersions to create a snapshot of the initialized execution environment when you publish a function version. For more information, see Improving startup performance with Lambda SnapStart.
statecorestringThe current state of the function. When the state is Inactive, you can reactivate the function by invoking it.
state_reasoncorestringThe reason for the function's current state.
state_reason_codecorestringThe reason code for the function's current state. When the code is Creating, you can't invoke or modify the function.
tagscorehstore
timeoutcoreint64The amount of time in seconds that Lambda allows a function to run before stopping it.
tracing_configcorejsonThe function's X-Ray tracing configuration.
versioncorestringThe version of the Lambda function.
vpc_configcorejsonThe function's networking configuration.