It seems other fellow also encounters the same issue (Issues with Amplify JS and LocalStack: Authentication and S3 Endpoint Problems - #4 by crispinzon).
This is a static archive of the LocalStack Discuss forum that was taken as of January 2025 and is read only.