From 75003bc3c47fe889c611fe4ff0aaa52303fe5e3c Mon Sep 17 00:00:00 2001 From: Jesse Kempf <jesse.kempf@binarysunrise.io> Date: Tue, 27 Nov 2018 12:06:38 -0800 Subject: [PATCH] Expose the invoke_arn for a created lambda --- outputs.tf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/outputs.tf b/outputs.tf index c187b69..01e8a40 100644 --- a/outputs.tf +++ b/outputs.tf @@ -8,6 +8,11 @@ output "function_name" { value = "${element(concat(aws_lambda_function.lambda.*.function_name, aws_lambda_function.lambda_with_dl.*.function_name, aws_lambda_function.lambda_with_vpc.*.function_name, aws_lambda_function.lambda_with_dl_and_vpc.*.function_name), 0)}" } +output "invoke_arn" { + description = "The ARN to be used for invoking the Lambda Function from API Gateway" + value = "${element(concat(aws_lambda_function.lambda.*.invoke_arn, aws_lambda_function.lambda_with_dl.*.invoke_arn, aws_lambda_function.lambda_with_vpc.*.invoke_arn, aws_lambda_function.lambda_with_dl_and_vpc.*.invoke_arn), 0)}" +} + output "role_arn" { description = "The ARN of the IAM role created for the Lambda function" value = "${aws_iam_role.lambda.arn}"