» aws_lambda_function
Provides information about a Lambda Function.
» Example Usage
variable "function_name" {
type = "string"
}
data "aws_lambda_function" "existing" {
function_name = "${var.function_name}"
}
» Argument Reference
The following arguments are supported:
-
function_name- (Required) Name of the lambda function. -
qualifier- (Optional) Alias name or version number of the lambda function. e.g.$LATEST,my-alias, or1
» Attributes Reference
In addition to all arguments above, the following attributes are exported:
-
arn- Unqualified (no:QUALIFIERor:VERSIONsuffix) Amazon Resource Name (ARN) identifying your Lambda Function. See alsoqualified_arn. -
dead_letter_config- Configure the function's dead letter queue. -
description- Description of what your Lambda Function does. -
environment- The Lambda environment's configuration settings. -
handler- The function entrypoint in your code. -
invoke_arn- The ARN to be used for invoking Lambda Function from API Gateway. -
kms_key_arn- The ARN for the KMS encryption key. -
last_modified- The date this resource was last modified. -
layers- A list of Lambda Layer ARNs attached to your Lambda Function. -
memory_size- Amount of memory in MB your Lambda Function can use at runtime. -
qualified_arn- Qualified (:QUALIFIERor:VERSIONsuffix) Amazon Resource Name (ARN) identifying your Lambda Function. See alsoarn. -
reserved_concurrent_executions- The amount of reserved concurrent executions for this lambda function or-1if unreserved. -
role- IAM role attached to the Lambda Function. -
runtime- The runtime environment for the Lambda function.. -
source_code_hash- Base64-encoded representation of raw SHA-256 sum of the zip file. -
source_code_size- The size in bytes of the function .zip file. -
timeout- The function execution time at which Lambda should terminate the function. -
tracing_config- Tracing settings of the function. -
version- The version of the Lambda function. -
vpc_config- VPC configuration associated with your Lambda function.