-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathoutputs.tf
25 lines (23 loc) · 890 Bytes
/
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
output "lambda" {
description = "Outputs a map with the built lambda's `arn`, `function_name`, `last_modified`, and `role`"
value = {
arn = module.lambda.lambda.arn
function_name = module.lambda.lambda.function_name
last_modified = module.lambda.lambda.last_modified
role = module.lambda.lambda.role
}
}
output "package" {
description = "Outputs a map with the built package's `build_time`, `logs`, and `s3` location"
value = {
build_time = local.worker_invoke_result.build_time
logs = local.worker_invoke_result.logs
s3 = local.worker_invoke_result.package_s3
}
}
output "worker" {
description = "Outputs a map with the worker lambda's `function_name`"
value = {
function_name = var.worker_lambda_function_name != null ? var.worker_lambda_function_name : module.worker[0].lambda_worker.function_name
}
}