Skip to content
This repository has been archived by the owner on Jun 8, 2022. It is now read-only.

Expose the invoke_arn for a created lambda #28

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please change Function -> function. I know AWS refers to them with and without a capital F in different places but the other outputs use lowercase so let's go with that. Otherwise, it looks good. Thanks.

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