Skip to content

Conversation

@rockholla
Copy link
Contributor

@rockholla rockholla commented Nov 11, 2025

Description

Fixing correct default for overwrite per #11 (comment)

I've also made a fix against the v1.2.0 tag in its own branch should the module owners want to create a v1.2.1 from that as well: v1.2.0...rockholla:terraform-aws-ssm-parameter:fix-v1.2/overwrite-param-default-null

Motivation and Context

Just adjusting to more-accurately expose the default behavior of the aws_ssm_parameter resource: false overwrite on initial creation, true thereafter, whereas prior to this change, it would be false thereafter as a default.

Breaking Changes

No, fixing forward

How Has This Been Tested?

The existing tests should still cover this I believe. I will let the module owners decide if additional tests are needed, and happy to continue to help there.

Along w/ running examples/complete as a validation, I've done some manual apply validation on the current version vs this version and verified things like initial creation/subsequent behavior on applies for overwriting vs not/respecting provider resource default, e.g. the null value explicitly set on the resource does what we expect, and it does.

  • I have updated at least one of the examples/* to demonstrate and validate my change(s)
  • I have tested and validated these changes using one or more of the provided examples/* projects
  • I have executed pre-commit run -a on my pull request

…to respect the resource switching of this value
@bryantbiggs bryantbiggs changed the title fix: Ensure default for overwrite parameter is null instead of false to respect the resource switching of this value fix: Set default value for overwrite to null which by default is false Nov 11, 2025
Copy link
Member

@bryantbiggs bryantbiggs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

its not really an issue but ... 6 versus half a dozen 🤷🏽‍♂️

@bryantbiggs bryantbiggs merged commit 58928d0 into terraform-aws-modules:master Nov 11, 2025
11 checks passed
antonbabenko pushed a commit that referenced this pull request Nov 11, 2025
## [2.0.1](v2.0.0...v2.0.1) (2025-11-11)

### Bug Fixes

* Set default value for `overwrite` to `null` which by default is `false` ([#14](#14)) ([58928d0](58928d0))
@antonbabenko
Copy link
Member

This PR is included in version 2.0.1 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants