We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af4161a commit 6ea7aa7Copy full SHA for 6ea7aa7
outputs.tf
@@ -5,7 +5,7 @@ output "lambda_iam_role_arn" {
5
6
output "lambda_iam_role_name" {
7
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
+ value = var.custom_iam_role_arn == null ? aws_iam_role.this[0].name : split("/", var.custom_iam_role_arn)[1]
9
}
10
11
output "scheduler_lambda_arn" {
0 commit comments