Deploy using Serverless Framework without AWS Credentials

Hi,

The scenario is to deploy AWS Lambda. API Gateway on AWS using serverless framework without using AWS Credentials. Basically, the user’s credentials, API access key etc. cannot be shared.

So, can we do this by keeping the code in EC2 which has the same IAM role access and then deploy others using serverless framework?

Please suggest any other better way.

Best Regards,
Gunjan