Skip to content

Add support for non-default profiles #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

alexfdrover
Copy link

Add support for non-default profiles. This allows for the plugin to be used when the user is managing multiple aws accounts from the same machine (E.g. one AWS account for a dev environment, another AWS account for a prod environment).

The plugin will now:

  • Grab the desired AWS profile from every place Serverless or the user might set it (serverless --aws-profile flag, provider.profile, AWS_PROFILE env var)
  • If a profile is found, builds the credentials with AWS.SharedIniFileCredentials
  • Pass those credentials into the new AWS.DynamoDBStreams()

Add support for non-default profiles
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant