Skip to content

Latest commit

 

History

History
102 lines (77 loc) · 1.55 KB

aws_backup_vault.md

File metadata and controls

102 lines (77 loc) · 1.55 KB

aws_backup_vault

back

Index

Terraform

terraform {
  required_providers {
    aws = ">= 3.35.0"
  }
}

top

Example Usage

module "aws_backup_vault" {
  source = "./modules/aws/d/aws_backup_vault"

  # name - (required) is a type of string
  name = null
  # tags - (optional) is a type of map of string
  tags = {}
}

top

Variables

variable "name" {
  description = "(required)"
  type        = string
}

variable "tags" {
  description = "(optional)"
  type        = map(string)
  default     = null
}

top

Datasource

data "aws_backup_vault" "this" {
  # name - (required) is a type of string
  name = var.name
  # tags - (optional) is a type of map of string
  tags = var.tags
}

top

Outputs

output "arn" {
  description = "returns a string"
  value       = data.aws_backup_vault.this.arn
}

output "id" {
  description = "returns a string"
  value       = data.aws_backup_vault.this.id
}

output "kms_key_arn" {
  description = "returns a string"
  value       = data.aws_backup_vault.this.kms_key_arn
}

output "recovery_points" {
  description = "returns a number"
  value       = data.aws_backup_vault.this.recovery_points
}

output "tags" {
  description = "returns a map of string"
  value       = data.aws_backup_vault.this.tags
}

output "this" {
  value = aws_backup_vault.this
}

top