-
Notifications
You must be signed in to change notification settings - Fork 3
/
outputs.tf
21 lines (21 loc) · 903 Bytes
/
outputs.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
output "name" {
value = var.enabled ? var.name : null
}
output "arn" {
value = (var.enabled && 0 < length(aws_lambda_function.lambda)) ? aws_lambda_function.lambda[0].arn : null
}
output "invoke_arn" {
value = (var.enabled && 0 < length(aws_lambda_function.lambda)) ? aws_lambda_function.lambda[0].invoke_arn : null
}
output "role_arn" {
value = (var.enabled && 0 < length(aws_lambda_function.lambda)) ? aws_iam_role.lambda[0].arn : null
}
output "role_name" {
value = (var.enabled && 0 < length(aws_lambda_function.lambda)) ? aws_iam_role.lambda[0].name : null
}
output "qualified_arn" {
value = (var.enabled && 0 < length(aws_lambda_function.lambda) && (true == var.publish)) ? aws_lambda_function.lambda[0].qualified_arn : null
}
output "version" {
value = (var.enabled && 0 < length(aws_lambda_function.lambda) && (true == var.publish)) ? aws_lambda_function.lambda[0].version : null
}