fix(tofu): disable AWS X-Ray in AppSync module across all environments - #172
Merged
Conversation
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.
Intent
Closes #116: Disable AWS X-Ray in the kernelworx AppSync API module across all environments (dev, prod, ephemeral) by setting xray_enabled = false in tofu/application/modules/appsync/api.tf without deleting the attribute, adding new CloudTrail/X-Ray resources, or introducing conditional logic. Verify no other xray_enabled or aws_xray enablements exist in tofu/application/ and run tofu fmt on the changed file.
What Changed
xray_enabled = falseonaws_appsync_graphql_api.mainintofu/application/modules/appsync/api.tf.xray_enabledoraws_xrayresources exist intofu/application/.Risk Assessment
✅ Low: The change is a single, bounded attribute flip from true to false in the AppSync module, matching the stated intent exactly with no other X-Ray references present in tofu/application/ and proper tofu formatting.
Testing
Verified the X-Ray toggle is in place in the shared AppSync module, that no other X-Ray enablements exist under tofu/application/, that the module is consumed by every environment, and that the changed file passes
tofu fmt. No failures or setup issues were encountered.Evidence: AppSync X-Ray verification report
Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
✅ **Review** - passed
✅ No issues found.
✅ **Test** - passed
✅ No issues found.
Confirmedtofu/application/modules/appsync/api.tfcontainsxray_enabled = falseand the attribute was not removedRangrep -R -in "xray\|x-ray" tofu/application/and verified only the intended AppSync setting references X-RayConfirmed theappsyncmodule is referenced fromtofu/application/environments/dev/main.tf,prod/main.tf, andephemeral/main.tfso the setting applies to all environmentsRantofu fmt -check -diff tofu/application/modules/appsync/api.tf(no output == already formatted)Rantofu fmt tofu/application/modules/appsync/api.tf(no output == no changes required)✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.