forked from terraform-aws-modules/terraform-aws-lambda
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoutputs.tf
99 lines (81 loc) · 3.51 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
# Lambda Function
output "this_lambda_function_arn" {
description = "The ARN of the Lambda Function"
value = element(concat(aws_lambda_function.this.*.arn, [""]), 0)
}
output "this_lambda_function_invoke_arn" {
description = "The Invoke ARN of the Lambda Function"
value = element(concat(aws_lambda_function.this.*.invoke_arn, [""]), 0)
}
output "this_lambda_function_name" {
description = "The name of the Lambda Function"
value = element(concat(aws_lambda_function.this.*.function_name, [""]), 0)
}
output "this_lambda_function_qualified_arn" {
description = "The ARN identifying your Lambda Function Version"
value = element(concat(aws_lambda_function.this.*.qualified_arn, [""]), 0)
}
output "this_lambda_function_version" {
description = "Latest published version of Lambda Function"
value = element(concat(aws_lambda_function.this.*.version, [""]), 0)
}
output "this_lambda_function_last_modified" {
description = "The date Lambda Function resource was last modified"
value = element(concat(aws_lambda_function.this.*.last_modified, [""]), 0)
}
output "this_lambda_function_kms_key_arn" {
description = "The ARN for the KMS encryption key of Lambda Function"
value = element(concat(aws_lambda_function.this.*.kms_key_arn, [""]), 0)
}
output "this_lambda_function_source_code_hash" {
description = "Base64-encoded representation of raw SHA-256 sum of the zip file"
value = element(concat(aws_lambda_function.this.*.source_code_hash, [""]), 0)
}
output "this_lambda_function_source_code_size" {
description = "The size in bytes of the function .zip file"
value = element(concat(aws_lambda_function.this.*.source_code_size, [""]), 0)
}
# Lambda Layer
output "this_lambda_layer_arn" {
description = "The ARN of the Lambda Layer with version"
value = element(concat(aws_lambda_layer_version.this.*.arn, [""]), 0)
}
output "this_lambda_layer_layer_arn" {
description = "The ARN of the Lambda Layer without version"
value = element(concat(aws_lambda_layer_version.this.*.layer_arn, [""]), 0)
}
output "this_lambda_layer_created_date" {
description = "The date Lambda Layer resource was created"
value = element(concat(aws_lambda_layer_version.this.*.created_date, [""]), 0)
}
output "this_lambda_layer_source_code_size" {
description = "The size in bytes of the Lambda Layer .zip file"
value = element(concat(aws_lambda_layer_version.this.*.source_code_size, [""]), 0)
}
output "this_lambda_layer_version" {
description = "The Lambda Layer version"
value = element(concat(aws_lambda_layer_version.this.*.version, [""]), 0)
}
# IAM Role
output "lambda_role_arn" {
description = "The ARN of the IAM role created for the Lambda Function"
value = element(concat(aws_iam_role.lambda.*.arn, [""]), 0)
}
output "lambda_role_name" {
description = "The name of the IAM role created for the Lambda Function"
value = element(concat(aws_iam_role.lambda.*.name, [""]), 0)
}
# CloudWatch Log Group
output "lambda_cloudwatch_log_group_arn" {
description = "The ARN of the Cloudwatch Log Group"
value = local.log_group_arn
}
# Deployment package
output "local_filename" {
description = "The filename of zip archive deployed (if deployment was from local)"
value = local.filename
}
output "s3_object" {
description = "The map with S3 object data of zip archive deployed (if deployment was from S3)"
value = map("bucket", local.s3_bucket, "key", local.s3_key, "version_id", local.s3_object_version)
}