-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoutputs.tf
49 lines (40 loc) · 1.6 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
output "lambda_function_name" {
value = aws_lambda_function.this.function_name
description = "The name of the Lambda function."
}
output "lambda_function_arn" {
value = aws_lambda_function.this.arn
description = "The ARN of the Lambda function."
}
output "lambda_layer_version_arn" {
value = aws_lambda_layer_version.this.arn
description = "The ARN of the Lambda layer version."
}
output "iam_role_arn" {
value = aws_iam_role.this.arn
description = "The ARN of the IAM role used by the Lambda function."
}
output "cloudwatch_event_rule_name" {
value = var.enable_scheduling ? aws_cloudwatch_event_rule.this[0].name : "Scheduling not enabled"
description = "The name of the CloudWatch Event Rule. Returns 'Scheduling not enabled' if scheduling is disabled."
}
output "cloudwatch_log_group_name" {
value = aws_cloudwatch_log_group.lambda.name
description = "The name of the CloudWatch Log Group associated with the Lambda function."
}
output "ssm_parameter_slack_token_name" {
value = aws_ssm_parameter.slack_token.name
description = "The name of the SSM parameter that stores the Slack token."
}
output "ssm_parameter_gitlab_token_name" {
value = aws_ssm_parameter.gitlab_token.name
description = "The name of the SSM parameter that stores the GitLab token."
}
output "code_zip_path" {
value = data.archive_file.code.output_path
description = "The path to the zipped code for the Lambda function."
}
output "layer_zip_path" {
value = data.archive_file.layer.output_path
description = "The path to the zipped Lambda layer package."
}