forked from nozaq/terraform-aws-secure-baseline
-
Notifications
You must be signed in to change notification settings - Fork 0
/
outputs.tf
24 lines (20 loc) · 869 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
output "cloudtrail" {
description = "The trail for recording events in all regions."
value = aws_cloudtrail.global
}
output "cloudtrail_sns_topic" {
description = "The sns topic linked to the cloudtrail."
value = var.cloudtrail_sns_topic_enabled ? aws_sns_topic.cloudtrail-sns-topic[0] : null
}
output "kms_key" {
description = "The KMS key used for encrypting CloudTrail events."
value = aws_kms_key.cloudtrail
}
output "log_delivery_iam_role" {
description = "The IAM role used for delivering CloudTrail events to CloudWatch Logs."
value = var.cloudwatch_logs_enabled ? aws_iam_role.cloudwatch_delivery[0] : null
}
output "log_group" {
description = "The CloudWatch Logs log group which stores CloudTrail events."
value = var.cloudwatch_logs_enabled ? aws_cloudwatch_log_group.cloudtrail_events[0].name : null
}