Skip to content

Add possibility to forcefully destroy the backup vault #95

@v-bieliavtsev

Description

@v-bieliavtsev

Describe the Feature

Please, add possibility to forcefully destroy the backup vault.
Add option force_destroy = var.backup_vault_force_destroy
Resource: aws_backup_vault

Expected Behavior

After passing the parameter backup_vault_force_destroy = true to module the backup vault should be deleted.

Use Case

Forcefully destroy temporary vaults in test environments. Completely destroy any environment.

Describe Ideal Solution

Add parameter force_destroy = var.backup_vault_force_destroy to block https://github.com/cloudposse/terraform-aws-backup/blob/main/main.tf#L25-L30.
Add default variable to https://github.com/cloudposse/terraform-aws-backup/blob/main/variables.tf like:

variable "backup_vault_force_destroy" {
    type = bool
    description = "Allow backup vault to be forcefully destroyed"
    default = false
}

Alternatives Considered

Manual action needed to destroy vault from AWS Console

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions