Skip to content

Commit 481df7f

Browse files
committed
add in overwrite variable and pass through to the call to the ssm parameter resource that is not ignoring value changes
1 parent 28784d3 commit 481df7f

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

main.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ resource "aws_ssm_parameter" "this" {
2424
allowed_pattern = var.allowed_pattern
2525
data_type = var.data_type
2626

27+
overwrite = var.overwrite
28+
2729
tags = var.tags
2830
}
2931

variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,3 +79,9 @@ variable "tags" {
7979
type = map(string)
8080
default = {}
8181
}
82+
83+
variable "overwrite" {
84+
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. Only relevant if ignore_value_changes is false."
85+
type = bool
86+
default = false
87+
}

0 commit comments

Comments
 (0)