Consolidate SSM parameters + add ssm_parameters_version output#11665
Merged
Conversation
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>
Contributor
Code Coverage Report: Only Changed Files listed
Minimum allowed coverage is |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
aws_ssm_parameterresources inintercode_aws_resources,sentry, andforwardemail_receivingmodules into a singleaws_ssm_parameter.paramsfor_each resource eachmovedblocks so existing state migrates with no destroy/recreatessm_parameters_versionoutput 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_resourcetrigger 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
tofu planon neil-terraform — should show onlymovedoperations (no destroy/recreate for SSM parameters)ssm_parameters_versionoutput is present on all three modules after apply🤖 Generated with Claude Code