Skip to content

Commit c202558

Browse files
feat: add role_arn to module outputs (#91)
Co-authored-by: Moritz Zimmer <moritz.zmmr@gmail.com>
1 parent d5d327a commit c202558

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
@@ -437,6 +437,7 @@ No modules.
437437
| <a name="output_cloudwatch_log_group_name"></a> [cloudwatch\_log\_group\_name](#output\_cloudwatch\_log\_group\_name) | The name of the CloudWatch log group used by your Lambda function. |
438438
| <a name="output_function_name"></a> [function\_name](#output\_function\_name) | The unique name of your Lambda Function. |
439439
| <a name="output_invoke_arn"></a> [invoke\_arn](#output\_invoke\_arn) | The ARN to be used for invoking Lambda Function from API Gateway - to be used in aws\_api\_gateway\_integration's uri |
440+
| <a name="output_role_arn"></a> [role\_arn](#output\_role\_arn) | The ARN of the IAM role attached to the Lambda Function. |
440441
| <a name="output_role_name"></a> [role\_name](#output\_role\_name) | The name of the IAM role attached to the Lambda Function. |
441442
| <a name="output_version"></a> [version](#output\_version) | Latest published version of your Lambda Function. |
442443
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->

outputs.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ output "role_name" {
2828
value = aws_iam_role.lambda.name
2929
}
3030

31+
output "role_arn" {
32+
description = "The ARN of the IAM role attached to the Lambda Function."
33+
value = aws_iam_role.lambda.arn
34+
}
35+
3136
output "version" {
3237
description = "Latest published version of your Lambda Function."
3338
value = var.ignore_external_function_updates ? aws_lambda_function.lambda_external_lifecycle[0].version : aws_lambda_function.lambda[0].version

0 commit comments

Comments
 (0)