Provides an AWS Backup vault lock configuration resource.
resource "aws_backup_vault_lock_configuration" "test" {
backup_vault_name = "example_backup_vault"
changeable_for_days = 3
max_retention_days = 1200
min_retention_days = 7
}
This resource supports the following arguments:
backup_vault_name
- (Required) Name of the backup vault to add a lock configuration for.changeable_for_days
- (Optional) The number of days before the lock date. If omitted creates a vault lock in governance
mode, otherwise it will create a vault lock in compliance
mode.max_retention_days
- (Optional) The maximum retention period that the vault retains its recovery points.min_retention_days
- (Optional) The minimum retention period that the vault retains its recovery points.This resource exports the following attributes in addition to the arguments above:
backup_vault_name
- The name of the vault.backup_vault_arn
- The ARN of the vault.In Terraform v1.5.0 and later, use an import
block to import Backup vault lock configuration using the name
. For example:
import {
to = aws_backup_vault_lock_configuration.test
id = "TestVault"
}
Using terraform import
, import Backup vault lock configuration using the name
. For example:
% terraform import aws_backup_vault_lock_configuration.test TestVault