1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
# Outputs ======================================================================
output "vault_ids" {
description = "Map of hub vault logical key to vault name."
value = { for k, v in aws_backup_vault.this : k => v.id }
}
output "vault_arns" {
description = "Map of hub vault logical key to ARN. Feed these into spoke backup-spoke module copy_actions."
value = { for k, v in aws_backup_vault.this : k => v.arn }
}
output "vault_recovery_points" {
description = "Map of hub vault logical key to current recovery point count."
value = { for k, v in aws_backup_vault.this : k => v.recovery_points }
}
output "notification_topic_arns" {
description = "Map of hub vault logical key to SNS topic ARN, for vaults where the module created the topic (notifications.create_sns_topic = true). Vaults using an existing topic (sns_topic_arn provided) or with no notifications configured are omitted."
value = { for k, v in aws_sns_topic.backup_notifications : k => v.arn }
}
|