-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoutputs.tf
More file actions
45 lines (38 loc) · 1.26 KB
/
outputs.tf
File metadata and controls
45 lines (38 loc) · 1.26 KB
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
# Layer outputs
output "layer_arn" {
description = "Lambda layer ARN"
value = aws_lambda_layer_version.this.arn
}
output "layer_version" {
description = "Lambda layer version"
value = aws_lambda_layer_version.this.version
}
output "layer_created_date" {
description = "Lambda layer creation date"
value = aws_lambda_layer_version.this.created_date
}
output "layer_source_code_hash" {
description = "Lambda layer source code hash"
value = aws_lambda_layer_version.this.source_code_hash
}
output "layer_source_code_size" {
description = "Lambda layer source code size"
value = aws_lambda_layer_version.this.source_code_size
}
# Package outputs
output "package_path" {
description = "Path to the layer deployment package"
value = local.use_prebuilt_zip ? var.filename : data.archive_file.layer_zip[0].output_path
}
output "package_size" {
description = "Size of the layer deployment package"
value = local.use_prebuilt_zip ? null : data.archive_file.layer_zip[0].output_size
}
# SSM parameter outputs
output "ssm_parameters" {
description = "SSM parameter names for layer integration"
value = {
layer_arn = aws_ssm_parameter.layer_arn.name
layer_version = aws_ssm_parameter.layer_version.name
}
}