Skip to content

Consolidate SSM parameters + add ssm_parameters_version output#11665

Merged
nbudin merged 1 commit into
mainfrom
add-ssm-version-outputs
Jun 9, 2026
Merged

Consolidate SSM parameters + add ssm_parameters_version output#11665
nbudin merged 1 commit into
mainfrom
add-ssm-version-outputs

Conversation

@nbudin

@nbudin nbudin commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Consolidates all individual aws_ssm_parameter resources in intercode_aws_resources, sentry, and forwardemail_receiving modules into a single aws_ssm_parameter.params for_each resource each
  • Adds moved blocks so existing state migrates with no destroy/recreate
  • Adds ssm_parameters_version output to all three modules — a sha256 hash over all managed parameter versions that auto-updates whenever any parameter changes (no manual maintenance needed)

Why

The version output will be used in neil-terraform as a null_resource trigger to restart Fly machines when SSM config changes. The for_each consolidation makes the output self-maintaining: adding or removing a parameter automatically changes the hash.

Test plan

  • Run tofu plan on neil-terraform — should show only moved operations (no destroy/recreate for SSM parameters)
  • Verify ssm_parameters_version output is present on all three modules after apply
  • Confirm state migration completes cleanly

🤖 Generated with Claude Code

Each module now manages all its aws_ssm_parameter resources through a
single for_each resource (aws_ssm_parameter.params), with moved blocks
for zero-downtime state migration from the individual named resources.

Adds ssm_parameters_version output to all three modules that manage SSM
parameters (intercode_aws_resources, sentry, forwardemail_receiving).
The output is a sha256 hash over all parameter versions, auto-updating
when any parameter changes — no manual maintenance needed when parameters
are added or removed.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Code Coverage Report: Only Changed Files listed

Package Base Coverage New Coverage Difference
Overall Coverage 🟢 52.92% 🟢 52.92% ⚪ 0%

Minimum allowed coverage is 0%, this run produced 52.92%

@nbudin nbudin merged commit 88f2b23 into main Jun 9, 2026
19 checks passed
@nbudin nbudin deleted the add-ssm-version-outputs branch June 9, 2026 16:14
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.

1 participant