diff --git a/README.md b/README.md index 8b27075..f7b3e3f 100644 --- a/README.md +++ b/README.md @@ -198,7 +198,7 @@ No modules. | [ignore\_value\_changes](#input\_ignore\_value\_changes) | Whether to create SSM Parameter and ignore changes in value | `bool` | `false` | no | | [key\_id](#input\_key\_id) | KMS key ID or ARN for encrypting a `SecureString` | `string` | `null` | no | | [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 | -| [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 | +| [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 | | [region](#input\_region) | Region where the resource(s) will be managed. Defaults to the Region set in the provider configuration | `string` | `null` | no | | [secure\_type](#input\_secure\_type) | Whether the type of the value should be considered as secure or not | `bool` | `false` | no | | [tags](#input\_tags) | A map of tags to add to all resources | `map(string)` | `{}` | no | diff --git a/variables.tf b/variables.tf index 598b38a..ae1487e 100644 --- a/variables.tf +++ b/variables.tf @@ -59,7 +59,7 @@ variable "name" { variable "overwrite" { 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" type = bool - default = false + default = null } variable "tier" { diff --git a/wrappers/main.tf b/wrappers/main.tf index 3280554..5301bea 100644 --- a/wrappers/main.tf +++ b/wrappers/main.tf @@ -10,7 +10,7 @@ module "wrapper" { ignore_value_changes = try(each.value.ignore_value_changes, var.defaults.ignore_value_changes, false) key_id = try(each.value.key_id, var.defaults.key_id, null) name = try(each.value.name, var.defaults.name, null) - overwrite = try(each.value.overwrite, var.defaults.overwrite, false) + overwrite = try(each.value.overwrite, var.defaults.overwrite, null) region = try(each.value.region, var.defaults.region, null) secure_type = try(each.value.secure_type, var.defaults.secure_type, false) tags = try(each.value.tags, var.defaults.tags, {})