XT-i / aws-lambda-jenkins-plugin

Jenkins plugin for AWS Lambda deployment
MIT License
39 stars 41 forks source link

Plugin does not recognize env variable #77

Open mattia85 opened 7 years ago

mattia85 commented 7 years ago

Hi, i'm trying to deploy lambda function using Use instance credentials option. I have exported the AWS credentials as env variable (_AWS_ACCESS_KEYID and AWS_SECRET_ACCESSKEY), but i'm getting the following error during the deploy.

com.amazonaws.SdkClientException: Unable to load AWS credentials from any provider in the chain

I'm able to deploy the lambda function only by passing AWS Access Key Id and Secret explicitly or using default credentials located at ~/.aws Any one have the same problem? I'm using jenkins 2.73.2 with version 0.5.10 of lambda-jenkins-plugin.

Thanks. Mattia