forked from tedilabs/terraform-aws-data
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoutputs.tf
54 lines (46 loc) · 1.75 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
50
51
52
53
54
output "arn" {
description = "The Amazon Resource Name (ARN) of the Glue Catalog Database."
value = aws_glue_catalog_database.this.arn
}
output "id" {
description = "The ID of the database."
value = aws_glue_catalog_database.this.id
}
output "catalog" {
description = "The ID of the Glue Catalog of the database."
value = aws_glue_catalog_database.this.catalog_id
}
output "name" {
description = "The name of the database."
value = aws_glue_catalog_database.this.name
}
output "description" {
description = "The description of the database."
value = aws_glue_catalog_database.this.description
}
output "location_uri" {
description = "The description of the database."
value = aws_glue_catalog_database.this.location_uri
}
output "parameters" {
description = "A set of key value pairs that specifies the Lambda function or functions to use for creating the data catalog."
value = aws_glue_catalog_database.this.parameters
}
# output "z" {
# value = {
# for k, v in aws_glue_catalog_database.this :
# k => v
# if !contains(["name", "description", "catalog_id", "location_uri", "arn", "id", "tags", "tags_all"], k)
# }
# }
output "sharing" {
description = <<EOF
The configuration for sharing of the Glue Database.
`status` - An indication of whether the database is shared with other AWS accounts, or was shared with the current account by another AWS account. Sharing is configured through AWS Resource Access Manager (AWS RAM). Values are `NOT_SHARED`, `SHARED_BY_ME` or `SHARED_WITH_ME`.
`shares` - The list of resource shares via RAM (Resource Access Manager).
EOF
value = {
status = length(module.share) > 0 ? "SHARED_BY_ME" : "NOT_SHARED"
shares = module.share
}
}