Skip to content

Commit 7085d21

Browse files
author
Kilian
committed
enha: added the invoke ARN of the Lambda function to the outputs
1 parent 6866337 commit 7085d21

File tree

2 files changed

+15
-7
lines changed

2 files changed

+15
-7
lines changed

README.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,27 +48,30 @@ This module provides a Lambda function which logs to CloudWatch. If no image URI
4848

4949
## Outputs
5050

51-
| Name | Description |
52-
| ---- | ------------------------------- |
53-
| arn | The ARN of the Lambda function. |
51+
| Name | Description |
52+
| ---------- | -------------------------------------- |
53+
| arn | The ARN of the Lambda function. |
54+
| invoke_arn | The invoke ARN of the Lambda function. |
5455

5556
## Example
5657

5758
```hcl
5859
module "function" {
5960
source = "github.com/custom-terraform-aws-modules/function"
6061
61-
identifier = "example-function-dev"
62+
identifier = "example-function-dev"
63+
memory_size = 128
64+
timeout = 3
65+
log = true
6266
policies = [
6367
"arn:aws:iam::aws:policy/aws-service-role/AccessAnalyzerServiceRolePolicy",
6468
"arn:aws:iam::aws:policy/AdministratorAccess-Amplify"
6569
]
66-
log = true
70+
6771
image = {
6872
uri = "test.registry:latest"
6973
}
70-
memory_size = 128
71-
timeout = 3
74+
7275
env_variables = {
7376
TEST_VAR = 3
7477
}

outputs.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,8 @@ output "arn" {
22
description = "ARN of the Lambda function."
33
value = aws_lambda_function.main.arn
44
}
5+
6+
output "invoke_arn" {
7+
description = "Invoke ARN of the Lambda function."
8+
value = aws_lambda_function.main.invoke_arn
9+
}

0 commit comments

Comments
 (0)