-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathoutputs.tf
More file actions
58 lines (53 loc) · 1.5 KB
/
Copy pathoutputs.tf
File metadata and controls
58 lines (53 loc) · 1.5 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
46
47
48
49
50
51
52
53
54
55
56
57
58
output "id" {
description = "The unique identifier for the event bus."
value = local.event_bus.id
}
output "arn" {
description = "The Amazon Resource Name (ARN) of the event bus."
value = local.event_bus.arn
}
output "name" {
description = "The name of the event bus."
value = local.event_bus.name
}
output "archives" {
description = "A list of archives for the event bus."
value = [
for archive in aws_cloudwatch_event_archive.this : {
id = archive.id
arn = archive.arn
name = archive.name
description = archive.description
retention_in_days = archive.retention_days
}
]
}
output "schema_discovery" {
description = "The configuration for schema discovery of the event bus."
value = {
enabled = var.schema_discovery.enabled
discoverer = (var.schema_discovery.enabled
? {
id = one(aws_schemas_discoverer.this[*].id)
arn = one(aws_schemas_discoverer.this[*].arn)
description = one(aws_schemas_discoverer.this[*].description)
}
: null
)
}
}
output "resource_group" {
description = "The resource group created to manage resources in this module."
value = merge(
{
enabled = var.resource_group.enabled && var.module_tags_enabled
},
(var.resource_group.enabled && var.module_tags_enabled
? {
arn = module.resource_group[0].arn
name = module.resource_group[0].name
}
: {}
)
)
}