forked from moritzzimmer/terraform-aws-lambda
-
Notifications
You must be signed in to change notification settings - Fork 0
/
outputs.tf
39 lines (32 loc) · 1.57 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" {
description = "The Amazon Resource Name (ARN) identifying your Lambda Function."
value = local.function_arn
}
output "cloudwatch_log_group_name" {
description = "The name of the CloudWatch log group used by your Lambda function."
value = aws_cloudwatch_log_group.lambda.name
}
output "cloudwatch_log_group_arn" {
description = "The Amazon Resource Name (ARN) identifying the CloudWatch log group used by your Lambda function."
value = aws_cloudwatch_log_group.lambda.arn
}
output "function_name" {
description = "The unique name of your Lambda Function."
value = var.ignore_external_function_updates ? aws_lambda_function.lambda_external_lifecycle[0].function_name : aws_lambda_function.lambda[0].function_name
}
output "invoke_arn" {
description = "The ARN to be used for invoking Lambda Function from API Gateway - to be used in aws_api_gateway_integration's uri"
value = var.ignore_external_function_updates ? aws_lambda_function.lambda_external_lifecycle[0].invoke_arn : aws_lambda_function.lambda[0].invoke_arn
}
output "role_name" {
description = "The name of the IAM role attached to the Lambda Function."
value = aws_iam_role.lambda.name
}
output "role_arn" {
description = "The ARN of the IAM role attached to the Lambda Function."
value = aws_iam_role.lambda.arn
}
output "version" {
description = "Latest published version of your Lambda Function."
value = var.ignore_external_function_updates ? aws_lambda_function.lambda_external_lifecycle[0].version : aws_lambda_function.lambda[0].version
}