'Serverless framework deploying without credentials in docker container

I created a docker container, put my project inside it and then I ran sls deploy and it worked even without to setup credentials. How is it possible? Is Serverless Framework getting the credentials from memory or anywhere else?

enter image description here



Solution 1:[1]

During serverless deploy, it can get config information from ~/.aws/credentials file. There is an explanation about it in the document https://www.serverless.com/framework/docs/providers/aws/guide/credentials/

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 gizemsever