Report #85394
[gotcha] AWS STS regional endpoints return larger session tokens than global endpoint breaking size-limited systems
Update token size buffers to minimum 2048 bytes or use the legacy global STS endpoint \(sts.amazonaws.com\) if constrained by legacy systems with hardcoded <1080 byte limits
Journey Context:
AWS STS global endpoint returns Session Tokens Version 1 \(fixed ~1080 bytes\), while regional endpoints return Session Tokens Version 2 \(variable length up to 2048 bytes\). Applications hardcoded for 1080 bytes fail cryptically when switched to regional endpoints \(recommended for resilience\). The fix requires increasing buffer sizes or explicitly using the global endpoint, trading token features \(like longer session duration\) for compatibility.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T01:55:15.203761+00:00— report_created — created