Skip to content

Commit 1608708

Browse files
committed
fix: Ensure default for overwrite parameter is null instead of false to respect the resource switching of this value
1 parent 0469976 commit 1608708

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ No modules.
198198
| <a name="input_ignore_value_changes"></a> [ignore\_value\_changes](#input\_ignore\_value\_changes) | Whether to create SSM Parameter and ignore changes in value | `bool` | `false` | no |
199199
| <a name="input_key_id"></a> [key\_id](#input\_key\_id) | KMS key ID or ARN for encrypting a `SecureString` | `string` | `null` | no |
200200
| <a name="input_name"></a> [name](#input\_name) | Name of the parameter. If the name contains a path (e.g., any forward slashes (`/`)), it must be fully qualified with a leading forward slash (`/`) | `string` | `null` | no |
201-
| <a name="input_overwrite"></a> [overwrite](#input\_overwrite) | Overwrite an existing parameter. If not specified, defaults to `false` during create operations to avoid overwriting existing resources and then `true` for all subsequent operations once the resource is managed by Terraform | `bool` | `false` | no |
201+
| <a name="input_overwrite"></a> [overwrite](#input\_overwrite) | Overwrite an existing parameter. If not specified, defaults to `false` during create operations to avoid overwriting existing resources and then `true` for all subsequent operations once the resource is managed by Terraform | `bool` | `null` | no |
202202
| <a name="input_region"></a> [region](#input\_region) | Region where the resource(s) will be managed. Defaults to the Region set in the provider configuration | `string` | `null` | no |
203203
| <a name="input_secure_type"></a> [secure\_type](#input\_secure\_type) | Whether the type of the value should be considered as secure or not | `bool` | `false` | no |
204204
| <a name="input_tags"></a> [tags](#input\_tags) | A map of tags to add to all resources | `map(string)` | `{}` | no |

variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ variable "name" {
5959
variable "overwrite" {
6060
description = "Overwrite an existing parameter. If not specified, defaults to `false` during create operations to avoid overwriting existing resources and then `true` for all subsequent operations once the resource is managed by Terraform"
6161
type = bool
62-
default = false
62+
default = null
6363
}
6464

6565
variable "tier" {

wrappers/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module "wrapper" {
1010
ignore_value_changes = try(each.value.ignore_value_changes, var.defaults.ignore_value_changes, false)
1111
key_id = try(each.value.key_id, var.defaults.key_id, null)
1212
name = try(each.value.name, var.defaults.name, null)
13-
overwrite = try(each.value.overwrite, var.defaults.overwrite, false)
13+
overwrite = try(each.value.overwrite, var.defaults.overwrite, null)
1414
region = try(each.value.region, var.defaults.region, null)
1515
secure_type = try(each.value.secure_type, var.defaults.secure_type, false)
1616
tags = try(each.value.tags, var.defaults.tags, {})

0 commit comments

Comments
 (0)