Skip to content

Commit 6ea7aa7

Browse files
committed
fix terraform ouput lambda_iam_role_name
1 parent af4161a commit 6ea7aa7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

outputs.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ output "lambda_iam_role_arn" {
55

66
output "lambda_iam_role_name" {
77
description = "The name of the IAM role used by Lambda function"
8-
value = var.custom_iam_role_arn == null ? aws_iam_role.this[0].arn : var.custom_iam_role_arn
8+
value = var.custom_iam_role_arn == null ? aws_iam_role.this[0].name : split("/", var.custom_iam_role_arn)[1]
99
}
1010

1111
output "scheduler_lambda_arn" {

0 commit comments

Comments
 (0)