Skip to content
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

Pass AWS credentials to automated tests #8

Closed
irvinlim opened this issue Nov 27, 2017 · 0 comments
Closed

Pass AWS credentials to automated tests #8

irvinlim opened this issue Nov 27, 2017 · 0 comments

Comments

@irvinlim
Copy link
Owner

There should be a way for automated tests to access the AWS SDK with credentials.

Normally on AWS Lambda, you can specify the IAM role, but through docker-lambda, we can pass the AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY environment variables using the addEnvVars option, which has to be a IAM user.

For passing this to the test runner, Travis accepts environment variables which will be forwarded to process.env. We can use dotenv, which will work for local test runs as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant