Can you try to initialize your clients with localhost.localstack.cloud enpoint like suggesting in this answer?
localhost.localstack.cloud