Infosec restrictions regarding storing of AWS Credentials locally

Hi,
As part of Infosec restrictions, we cannot store AWS credentials locally.

But as part of the serverless framework connectivity setup to AWS, the credentials are saved locally.

Is there a workaround?