Skip to content

Commit

Permalink
fix terraform ouput lambda_iam_role_name
Browse files Browse the repository at this point in the history
  • Loading branch information
diodonfrost committed Sep 2, 2020
1 parent af4161a commit 6ea7aa7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ output "lambda_iam_role_arn" {

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

output "scheduler_lambda_arn" {
Expand Down

0 comments on commit 6ea7aa7

Please sign in to comment.