Skip to content

Commit bbf76bc

Browse files
Adding function_name output (cloudposse#7)
* Adding function name * Auto Format Co-authored-by: cloudpossebot <[email protected]>
1 parent 64e3d28 commit bbf76bc

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@ Available targets:
233233
| Name | Description |
234234
|------|-------------|
235235
| <a name="output_arn"></a> [arn](#output\_arn) | ARN of the lambda function |
236+
| <a name="output_function_name"></a> [function\_name](#output\_function\_name) | Lambda function name |
236237
| <a name="output_invoke_arn"></a> [invoke\_arn](#output\_invoke\_arn) | Inkoke ARN of the lambda function |
237238
| <a name="output_qualified_arn"></a> [qualified\_arn](#output\_qualified\_arn) | ARN identifying your Lambda Function Version (if versioning is enabled via publish = true) |
238239
<!-- markdownlint-restore -->

docs/terraform.md

+1
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@
9898
| Name | Description |
9999
|------|-------------|
100100
| <a name="output_arn"></a> [arn](#output\_arn) | ARN of the lambda function |
101+
| <a name="output_function_name"></a> [function\_name](#output\_function\_name) | Lambda function name |
101102
| <a name="output_invoke_arn"></a> [invoke\_arn](#output\_invoke\_arn) | Inkoke ARN of the lambda function |
102103
| <a name="output_qualified_arn"></a> [qualified\_arn](#output\_qualified\_arn) | ARN identifying your Lambda Function Version (if versioning is enabled via publish = true) |
103104
<!-- markdownlint-restore -->

outputs.tf

+5
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,8 @@ output "qualified_arn" {
1212
description = "ARN identifying your Lambda Function Version (if versioning is enabled via publish = true)"
1313
value = local.enabled ? aws_lambda_function.this[0].qualified_arn : null
1414
}
15+
16+
output "function_name" {
17+
description = "Lambda function name"
18+
value = local.enabled ? aws_lambda_function.this[0].function_name : null
19+
}

0 commit comments

Comments
 (0)