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

Commit 4ca511f

Browse files
Mark Thebaultraymondbutcher
authored andcommitted
Add a new output parameter 'invoke_arn' (#41)
* add invoke_arn in outputs This feature is particularly useful with API Gateway * Update doc after adding new invoke_arn output
1 parent 80e448a commit 4ca511f

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ function name unique per region, for example by setting
9595
| Name | Description |
9696
|------|-------------|
9797
| function\_arn | The ARN of the Lambda function |
98+
| function\_invoke\_arn | The Invoke ARN of the Lambda function |
9899
| function\_name | The name of the Lambda function |
99100
| function\_qualified\_arn | The qualified ARN of the Lambda function |
100101
| role\_arn | The ARN of the IAM role created for the Lambda function |

outputs.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ output "function_arn" {
33
value = "${element(concat(aws_lambda_function.lambda.*.arn, aws_lambda_function.lambda_with_dl.*.arn, aws_lambda_function.lambda_with_vpc.*.arn, aws_lambda_function.lambda_with_dl_and_vpc.*.arn), 0)}"
44
}
55

6+
output "function_invoke_arn" {
7+
description = "The Invoke ARN of the Lambda function"
8+
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)}"
9+
}
10+
611
output "function_name" {
712
description = "The name of the Lambda function"
813
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)}"

0 commit comments

Comments
 (0)