This repository has been archived by the owner on Oct 31, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathoutputs.tf
38 lines (32 loc) · 1.57 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
output "regions" {
description = <<DESCRIPTION
A list of region objects. Each region object contains the following attributes:
- `name` - The name of the region.
- `display_name` - The display name of the region.
- `paired_region_name` - The name of the region paired with this region. May be `null` if the region has no pair.
- `geography` - The geography of the region.
- `geography_group` - The geography group of the region.
- `zones` - A list of the availability zones in the region. Will be empty if the region does not support zones.
DESCRIPTION
value = local.regions_recommended_or_not
}
output "regions_by_display_name" {
description = "A map of region display names to region objects. See `regions` output for more details."
value = local.regions_by_display_name
}
output "regions_by_geography" {
description = "A map of geographies to a list of region objects. See `regions` output for more details."
value = local.regions_by_geography
}
output "regions_by_geography_group" {
description = "A map of geography groups to a list of region objects. See `regions` output for more details."
value = local.regions_by_geography_group
}
output "regions_by_name" {
description = "A map of region display names to region objects. See `regions` output for more details."
value = local.regions_by_name
}
output "regions_by_name_or_display_name" {
description = "A map of regions by either display names or name, to region objects. See `regions` output for more details."
value = merge(local.regions_by_display_name, local.regions_by_name)
}