Move Terraform SSM parameter writes into outputs.tf for consistency - #94
Open
jordanpadams wants to merge 1 commit into
Open
Move Terraform SSM parameter writes into outputs.tf for consistency#94jordanpadams wants to merge 1 commit into
jordanpadams wants to merge 1 commit into
Conversation
Co-locate aws_ssm_parameter resources with output blocks in outputs.tf so the module published cross-repo interface is visible in one file. No functional change - resource names and SSM paths are unchanged. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR relocates Terraform SSM parameter resources into outputs.tf alongside related outputs without changing behavior.
Changes:
- Moved the S3 bucket SSM parameter.
- Moved three Logstash SSM parameters.
- Removed their original definitions from
main.tf.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
terraform/s3/outputs.tf |
Adds the S3 bucket SSM parameter. |
terraform/s3/main.tf |
Removes the relocated parameter. |
terraform/logstash/outputs.tf |
Adds Logstash SSM parameters. |
terraform/logstash/main.tf |
Removes the relocated parameters. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Open
6 tasks
nutjob4life
approved these changes
Aug 21, 2026
nutjob4life
left a comment
Member
There was a problem hiding this comment.
Terraform delta: ✓
Re-Formatting: not necessary
Visual inspection: ✓ (trust accordingly)
Approval: ✅
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
Move
aws_ssm_parameterresource blocks out ofmain.tf(ands3/main.tf) intooutputs.tf, co-located with the matchingoutputblocks. This makes the module's published cross-repo interface visible in one file — the full answer to "what does this module publish to SSM?" is now inoutputs.tfrather than scattered across files.Affected modules:
terraform/logstash/— movedec2_role_arn,logstash_instance_id, andlogstash_runas_documentSSM writesterraform/s3/— moveds3_bucket_nameSSM writeNo functional change — resource names, SSM paths, and values are unchanged.
This aligns web-analytics with the convention established in
pdc-observabilityand documented interra-wrangler.🤖 AI Assistance Disclosure
Estimated % of code influenced by AI: 95%
⚙️ Test Data and/or Report
Pure refactor — no logic changed, only file placement. Verified by diffing the
terraform planoutput before and after: no resource additions, deletions, or in-place updates.♻️ Related Issues
Refs NASA-PDS/pdc-observability#7
🤓 Reviewer Checklist
Reviewers: Please verify the following before approving this pull request.
Documentation and PR Content
Security & Quality
Testing & Validation
Maintenance