-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathoutputs.tf
39 lines (32 loc) · 1.21 KB
/
outputs.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
output "arn" {
value = aws_lambda_function.default.arn
description = "ARN of the Lambda"
}
output "invoke_arn" {
value = aws_lambda_function.default.invoke_arn
description = "Invoke ARN of the Lambda"
}
output "name" {
value = aws_lambda_function.default.function_name
description = "Function name of the Lambda"
}
output "qualified_arn" {
value = aws_lambda_function.default.qualified_arn
description = "Qualified ARN of the Lambda"
}
output "role_arn" {
value = var.execution_role_custom != null ? var.execution_role_custom.arn : module.lambda_role[0].arn
description = "ARN of the lambda execution role"
}
output "role_name" {
value = element(split("/", aws_lambda_function.default.role), length(split("/", aws_lambda_function.default.role)) - 1)
description = "Name of the lambda execution role"
}
output "security_group_id" {
value = try(aws_security_group.default[0].id, "")
description = "If the Lambda is deployed into a VPC this will output the genetered security group id (if no security groups are specified)"
}
output "version" {
value = aws_lambda_function.default.version
description = "Latest published version of the Lambda function"
}