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

support reading AWS_ keys from environment variables #17

Open
alistair opened this issue Jan 21, 2016 · 3 comments
Open

support reading AWS_ keys from environment variables #17

alistair opened this issue Jan 21, 2016 · 3 comments

Comments

@alistair
Copy link

The aws node sdk supports configuration via environment variables [1].

Sadly I think that by the way you default values to "" with your call to AWS.Lambda means that the sdk does not attempt to look at these environment variables and instead you get a credentials error.

[1] http://docs.aws.amazon.com/AWSJavaScriptSDK/guide/node-configuring.html

@paulmelnikow
Copy link

I did not try environment variables, but I have my AWS credentials in ~/.aws/credentials, and am able to use this library to deploy just fine. So I'm not sure whether the "" default is causing any problems. I'm using [email protected].

@albertomr86
Copy link

Hi, I tried the following command, where reads access from the env, and it worked.

AWS_ACCESS_KEY_ID= AWS_SECRET_ACCESS_KEY= gulp deploy

"node-aws-lambda": "^0.1.8"

@paulmelnikow
Copy link

Sounds like this can be closed!

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

No branches or pull requests

3 participants