Module to manage AWS Backup with Terraform.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

78 lines
2.2KB

  1. ####
  2. # Vault
  3. ####
  4. output "vault_id" {
  5. description = "The name of the vault."
  6. value = element(concat(aws_backup_vault.this.*.id, [""]), 0)
  7. }
  8. output "vault_arn" {
  9. description = "ARN of the vault."
  10. value = element(concat(aws_backup_vault.this.*.arn, [""]), 0)
  11. }
  12. output "vault_recovery_points" {
  13. description = "The number of recovery points that are stored in a backup vault."
  14. value = element(concat(aws_backup_vault.this.*.recovery_points, [""]), 0)
  15. }
  16. output "vault_kms_key_arn" {
  17. description = "ARN of the KMS key for the backup vault."
  18. value = element(concat(aws_kms_key.this.*.arn, [""]), 0)
  19. }
  20. output "vault_kms_key_id" {
  21. description = "Globally unique identifier of the KMS key for the backup vault."
  22. value = element(concat(aws_kms_key.this.*.key_id, [""]), 0)
  23. }
  24. output "vault_kms_key_alias_arn" {
  25. description = "ARN of the KMS key alias for the backup vault."
  26. value = element(concat(aws_kms_alias.this.*.arn, [""]), 0)
  27. }
  28. ####
  29. # Plan
  30. ####
  31. output "plan_arns" {
  32. description = "ARNs of the backup plans."
  33. value = compact(concat(aws_backup_plan.this.*.arn, [""]))
  34. }
  35. output "plan_versions" {
  36. description = "Unique, randomly generated, Unicode, UTF-8 encoded strings that serves as the version ID of the backup plans."
  37. value = compact(concat(aws_backup_plan.this.*.version, [""]))
  38. }
  39. output "plan_iam_role_arn" {
  40. description = "ARN of the role for the backup plans."
  41. value = element(concat(aws_iam_role.this.*.arn, [""]), 0)
  42. }
  43. output "plan_iam_role_name" {
  44. description = "Name of the role for the backup plans."
  45. value = element(concat(aws_iam_role.this.*.name, [""]), 0)
  46. }
  47. output "plan_iam_role_unique_id" {
  48. description = "Stable and unique string identifying the role for the backup plans."
  49. value = element(concat(aws_iam_role.this.*.unique_id, [""]), 0)
  50. }
  51. ####
  52. # Selection
  53. ####
  54. output "selection_tag_ids" {
  55. description = "Backup Selection identifiers (by tags)."
  56. value = compact(concat(aws_backup_selection.by_tags.*.id, [""]))
  57. }
  58. output "selection_resources_ids" {
  59. description = "Backup Selection identifiers (by ressources)."
  60. value = compact(concat(aws_backup_selection.by_resources.*.id, [""]))
  61. }