Serverless framework cli with different AWS credential profiles

If you have multiple aws cli profiles configured to work with multiple sets of credentials, you can tell the serverless cli which profile to use with either:

export AWS_PROFILE="profileName2"

or

serverless deploy --aws-profile profilename

This is covered in the docs here.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.