-
Notifications
You must be signed in to change notification settings - Fork 0
/
outputs.tf
62 lines (55 loc) · 1.77 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
55
56
57
58
59
60
61
62
output "containers" {
description = "Map of storage containers that are created."
value = {
for name, container in azapi_resource.containers :
name => {
id = container.id
name = container.name
name = azurerm_storage_account.this.name
public_access = jsondecode(container.body).properties.publicAccess
metadata = jsondecode(container.body).properties.metadata
}
}
}
output "fqdn" {
description = "Fqdns for storage services."
value = { for svc in local.endpoints : svc => "${azurerm_storage_account.this.name}.${svc}.core.windows.net" }
}
output "id" {
description = "The ID of the Storage Account."
value = azurerm_storage_account.this.id
}
output "name" {
description = "The name of the storage account"
value = azurerm_storage_account.this.name
}
output "private_endpoints" {
description = "A map of private endpoints. The map key is the supplied input to var.private_endpoints. The map value is the entire azurerm_private_endpoint resource."
value = azurerm_private_endpoint.this
}
output "queues" {
description = "Map of storage queues that are created."
value = {
for name, queue in azurerm_storage_queue.this :
name => {
id = queue.id
name = queue.name
name = queue.storage_account_name
metadata = queue.metadata
}
}
}
output "resource" {
description = "This is the full resource output for the Storage Account resource."
value = azurerm_storage_account.this
}
output "tables" {
description = "Map of storage tables that are created."
value = {
for name, table in azurerm_storage_table.this : name => {
id = table.id
name = table.name
name = table.storage_account_name
}
}
}