Skip to content

[BUG] PatchMgmt - Document sha mismatch causes maintenance window runs to fail #301

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
tdcarrol opened this issue May 8, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@tdcarrol
Copy link

tdcarrol commented May 8, 2025

Describe the bug

The sra_linux_maintenance maintenance window is failing after initial success. This appears to be due to a documented hash mismatch issue where the document hash is stored at creation time but not updated when AWS updates the underlying SSM documents.

Checking CloudWatch logs shows this error:

  "errorCode": "InvalidDocument",
  "errorMessage": "document hash ee02200c65f0b5f76be341511a1520e7880c15312ca8b5455aebf1847d08705f does not match Sha256."

To Reproduce

Steps to reproduce the behavior:

  1. Deploy the AWS SRA solution using either the easy setup or the individual patch management solution
  2. Wait for AWS to update their SSM documents (specifically AWS-RunPatchBaseline)
  3. The next time the maintenance window runs, it will fail with a document hash mismatch error

Expected behavior

The maintenance windows should either:

  1. Not hardcode the document hash at creation time, or
  2. Have a mechanism to update the document hash automatically when AWS updates the underlying SSM documents

Deployment Environment (please complete the following information)

  • Deployment Framework [e.g. Customizations for Control Tower and CloudFormation StackSets]: sra-easy-setup.yaml
  • Deployment Framework Version [e.g. 1.0, 2.0]: Not sure, it's a few months old, latest sra-easy-setup.yaml

Additional context

Add any other context about the problem here.

@tdcarrol tdcarrol added the bug Something isn't working label May 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant