Skip to content

Commit

Permalink
Merge pull request #74 from lgallard/release/0.19.0
Browse files Browse the repository at this point in the history
Release/0.19.0
  • Loading branch information
lgallard authored Feb 28, 2023
2 parents f3a128f + a2ae3cd commit 8f894d7
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 9 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## 0.19.0 (February 28, 2022)

ENHANCEMENTS:

* Add support for `force-destroy` flag to backup vault (Thanks @igorzi84)
* Add new resource `aws_backup_vault_lock_configuration` (Thanks @dhoppe)


## 0.18.0 (September 30, 2022)

ENHANCEMENTS:
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,13 +149,13 @@ module "aws_backup_example" {
| Name | Version |
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.12.31 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 3.0 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 4.26 |

## Providers

| Name | Version |
|------|---------|
| <a name="provider_aws"></a> [aws](#provider\_aws) | 4.55.0 |
| <a name="provider_aws"></a> [aws](#provider\_aws) | 4.56.0 |

## Modules

Expand Down Expand Up @@ -214,6 +214,7 @@ No modules.
| <a name="input_selection_tags"></a> [selection\_tags](#input\_selection\_tags) | List of tags for `selection_name` var, when using variable definition. | `list(any)` | `[]` | no |
| <a name="input_selections"></a> [selections](#input\_selections) | A list of selction maps | `any` | `[]` | no |
| <a name="input_tags"></a> [tags](#input\_tags) | A mapping of tags to assign to the resource | `map(string)` | `{}` | no |
| <a name="input_vault_force_destroy"></a> [vault\_force\_destroy](#input\_vault\_force\_destroy) | A boolean that indicates that all recovery points stored in the vault are deleted so that the vault can be destroyed without error. | `bool` | `false` | no |
| <a name="input_vault_kms_key_arn"></a> [vault\_kms\_key\_arn](#input\_vault\_kms\_key\_arn) | The server-side encryption key that is used to protect your backups | `string` | `null` | no |
| <a name="input_vault_name"></a> [vault\_name](#input\_vault\_name) | Name of the backup vault to create. If not given, AWS use default | `string` | `null` | no |
| <a name="input_windows_vss_backup"></a> [windows\_vss\_backup](#input\_windows\_vss\_backup) | Enable Windows VSS backup option and create a VSS Windows backup | `bool` | `false` | no |
Expand Down
10 changes: 5 additions & 5 deletions main.tf
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# AWS Backup vault
resource "aws_backup_vault" "ab_vault" {
count = var.enabled && var.vault_name != null ? 1 : 0
name = var.vault_name
kms_key_arn = var.vault_kms_key_arn
force_delete = var.vault_force_delete
tags = var.tags
count = var.enabled && var.vault_name != null ? 1 : 0
name = var.vault_name
kms_key_arn = var.vault_kms_key_arn
force_destroy = var.vault_force_destroy
tags = var.tags
}

# AWS Backup vault lock configuration
Expand Down
4 changes: 2 additions & 2 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ variable "tags" {
default = {}
}

variable "vault_force_delete" {
description = "Force delete the backup vault even if it contains recovery points"
variable "vault_force_destroy" {
description = "A boolean that indicates that all recovery points stored in the vault are deleted so that the vault can be destroyed without error."
type = bool
default = false
}
Expand Down

0 comments on commit 8f894d7

Please sign in to comment.