SignatureDoesNotMatch for S3 export

I deployed the CloudFormation stack in order to export workflow history to S3. I am getting an error:

SignatureDoesNotMatch: The request signature we calculated does not match the signature you provided. Check your key and signing method.

any tips on how to resolve?

Can you show your archival config in server static config (/etc/temporal/config/docker.yaml). How are you setting up your aws credentials? The error you provide does not look like something Temporal specific, but probably some misconfiguration with aws credentials?