Skip to content

Commit ed4fef9

Browse files
authored
Merge pull request #1 from terraform-aws-modules/feat-remove-overwrite
2 parents 6113db0 + 661bbc6 commit ed4fef9

File tree

7 files changed

+3
-16
lines changed

7 files changed

+3
-16
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/antonbabenko/pre-commit-terraform
3-
rev: v1.78.0
3+
rev: v1.81.0
44
hooks:
55
- id: terraform_fmt
66
- id: terraform_wrapper_module_for_each

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,6 @@ No modules.
200200
| <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 |
201201
| <a name="input_key_id"></a> [key\_id](#input\_key\_id) | KMS key ID or ARN for encrypting a parameter (when type is SecureString) | `string` | `null` | no |
202202
| <a name="input_name"></a> [name](#input\_name) | Name of SSM parameter | `string` | `null` | no |
203-
| <a name="input_overwrite"></a> [overwrite](#input\_overwrite) | Whether to allow overwrite an existing parameter | `string` | `null` | no |
204203
| <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 |
205204
| <a name="input_tags"></a> [tags](#input\_tags) | A mapping of tags to assign to resources | `map(string)` | `{}` | no |
206205
| <a name="input_tier"></a> [tier](#input\_tier) | Parameter tier to assign to the parameter. If not specified, will use the default parameter tier for the region. Valid tiers are Standard, Advanced, and Intelligent-Tiering. Downgrading an Advanced tier parameter to Standard will recreate the resource. | `string` | `null` | no |
@@ -212,7 +211,7 @@ No modules.
212211

213212
| Name | Description |
214213
|------|-------------|
215-
| <a name="output_insecure_value"></a> [insecure\_value](#output\_insecure\_value) | Insecure value of the parameter after jsondecode() |
214+
| <a name="output_insecure_value"></a> [insecure\_value](#output\_insecure\_value) | Insecure value of the parameter |
216215
| <a name="output_raw_value"></a> [raw\_value](#output\_raw\_value) | Raw value of the parameter (as it is stored in SSM). Use 'value' output to get jsondecode'd value |
217216
| <a name="output_secure_type"></a> [secure\_type](#output\_secure\_type) | Whether SSM parameter is a SecureString or not? |
218217
| <a name="output_secure_value"></a> [secure\_value](#output\_secure\_value) | Secure value of the parameter |

examples/complete/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ No inputs.
5252

5353
| Name | Description |
5454
|------|-------------|
55-
| <a name="output_insecure_value"></a> [insecure\_value](#output\_insecure\_value) | Insecure value of the parameter after jsondecode() |
55+
| <a name="output_insecure_value"></a> [insecure\_value](#output\_insecure\_value) | Insecure value of the parameter |
5656
| <a name="output_raw_value"></a> [raw\_value](#output\_raw\_value) | Raw value of the parameter (as it is stored in SSM). Use 'value' output to get jsondecode'd value |
5757
| <a name="output_secure_type"></a> [secure\_type](#output\_secure\_type) | Whether SSM parameter is a SecureString or not? |
5858
| <a name="output_secure_value"></a> [secure\_value](#output\_secure\_value) | Secure value of the parameter |

examples/complete/main.tf

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ locals {
2222
"string" = {
2323
type = "String"
2424
value = "string_value123"
25-
overwrite = true
2625
tier = "Intelligent-Tiering"
2726
allowed_pattern = "[a-z0-9_]+"
2827
}
@@ -125,7 +124,6 @@ module "multiple" {
125124
secure_type = try(each.value.secure_type, null)
126125
description = try(each.value.description, null)
127126
tier = try(each.value.tier, null)
128-
overwrite = try(each.value.overwrite, null)
129127
key_id = try(each.value.key_id, null)
130128
allowed_pattern = try(each.value.allowed_pattern, null)
131129
data_type = try(each.value.data_type, null)
@@ -147,7 +145,6 @@ module "multiple_ignore_value_changes" {
147145
secure_type = try(each.value.secure_type, null)
148146
description = try(each.value.description, null)
149147
tier = try(each.value.tier, null)
150-
overwrite = try(each.value.overwrite, null)
151148
key_id = try(each.value.key_id, null)
152149
allowed_pattern = try(each.value.allowed_pattern, null)
153150
data_type = try(each.value.data_type, null)

main.tf

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ resource "aws_ssm_parameter" "this" {
2020
insecure_value = local.list_type || local.string_type ? local.value : null
2121

2222
tier = var.tier
23-
overwrite = var.overwrite
2423
key_id = local.secure_type ? var.key_id : null
2524
allowed_pattern = var.allowed_pattern
2625
data_type = var.data_type
@@ -39,7 +38,6 @@ resource "aws_ssm_parameter" "ignore_value" {
3938
insecure_value = local.list_type || local.string_type ? local.value : null
4039

4140
tier = var.tier
42-
overwrite = var.overwrite
4341
key_id = local.secure_type ? var.key_id : null
4442
allowed_pattern = var.allowed_pattern
4543
data_type = var.data_type

variables.tf

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,6 @@ variable "tier" {
5656
default = null
5757
}
5858

59-
variable "overwrite" {
60-
description = "Whether to allow overwrite an existing parameter"
61-
type = string
62-
default = null
63-
}
64-
6559
variable "key_id" {
6660
description = "KMS key ID or ARN for encrypting a parameter (when type is SecureString)"
6761
type = string

wrappers/main.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ module "wrapper" {
1212
description = try(each.value.description, var.defaults.description, null)
1313
type = try(each.value.type, var.defaults.type, null)
1414
tier = try(each.value.tier, var.defaults.tier, null)
15-
overwrite = try(each.value.overwrite, var.defaults.overwrite, null)
1615
key_id = try(each.value.key_id, var.defaults.key_id, null)
1716
allowed_pattern = try(each.value.allowed_pattern, var.defaults.allowed_pattern, null)
1817
data_type = try(each.value.data_type, var.defaults.data_type, null)

0 commit comments

Comments
 (0)