Resource: aws_backup_vault

Provides an AWS Backup vault resource.

Example Usage

resource "aws_backup_vault" "example" {
  name        = "example_backup_vault"
  kms_key_arn = aws_kms_key.example.arn
}

Argument Reference

This resource supports the following arguments:

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Timeouts

Configuration options:

Import

In Terraform v1.5.0 and later, use an import block to import Backup vault using the name. For example:

import {
  to = aws_backup_vault.test-vault
  id = "TestVault"
}

Using terraform import, import Backup vault using the name. For example:

% terraform import aws_backup_vault.test-vault TestVault