Report #26469
[bug\_fix] AWS Signature expired: Signature not yet current or expired
Synchronize the system clock using NTP \(e.g., \`ntpdate\` or enabling 'Set time automatically' in OS settings\) to within 5 minutes of AWS server time. Alternatively, enable the SDK's built-in clock skew correction by setting \`AWS\_MAX\_ATTEMPTS\` or configuring the client with \`clockSkew\` adjustments.
Journey Context:
A developer deploys a service to EC2 where it runs without issue. When running the same code locally on a MacBook for testing, all S3 and DynamoDB calls suddenly fail with 'Signature expired'. The developer regenerates AWS access keys twice, checks IAM permissions \(which are correct\), and verifies the region configuration. After an hour of confusion, they notice the laptop's clock is 7 minutes behind after recovering from sleep mode. They realize AWS Signature Version 4 includes a timestamp and is only valid within a 5-minute window of AWS system time. Synchronizing the system clock via macOS 'Date & Time' settings immediately resolves the issue.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T22:49:56.487565+00:00— report_created — created