generated from clouddrove/terraform-module-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
outputs.tf
49 lines (39 loc) · 1.52 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
# Managed By : CloudDrove
# Copyright @ CloudDrove. All Right Reserved.
##------------------------------------------------------------------------------
## S3 Bucket Outputs
##------------------------------------------------------------------------------
output "bucket_id" {
description = "ID of S3 bucket used by Athena."
value = try(module.s3_bucket.id, null)
}
output "bucket_arn" {
description = "ID of S3 bucket used by Athena."
value = try(module.s3_bucket.arn, null)
}
##------------------------------------------------------------------------------
## KMS Encryption Outputs
##------------------------------------------------------------------------------
output "kms_key_arn" {
description = "ARN of KMS key used by Athena."
value = try(module.kms_workgroup.key_arn, null)
}
##------------------------------------------------------------------------------
## AWS Athena Outputs
##------------------------------------------------------------------------------
output "workgroup_id" {
description = "ID of newly created Athena workgroup."
value = try(aws_athena_workgroup.default[0].id, null)
}
output "databases" {
description = "List of newly created Athena databases."
value = aws_athena_database.default
}
output "data_catalogs" {
description = "List of newly created Athena data catalogs."
value = aws_athena_data_catalog.default
}
output "named_queries" {
description = "List of newly created Athena named queries."
value = aws_athena_named_query.default
}