AWS authentication requires a valid Date or x-amz-date header curl
Fixed the issue.. Turns out the HTTP header need to be in RFC 7231 format. I formatted it and it worked., below is the format I used,
date -jnu +%a,\ %d\ %h\ %Y\ %T\ %Z
had similar issue but got:
Date must be in ISO-8601 'basic format'
which I used this to fix:
$(date -u +"%Y-%m-%dT%H:%M:%S%z")