You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+49-40Lines changed: 49 additions & 40 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -61,11 +61,10 @@ npm packages which should be bundled with your lambda function must be included
61
61
[Read More](#default-options-1)
62
62
63
63
64
-
## Specify AWS credentials in ~/.aws/credentials
64
+
## Authenticating to AWS
65
65
66
-
This will save you from accidentally committing AWS credentials.
67
-
68
-
[Read More](#aws-credentials)
66
+
This library supports providing credentials for AWS via an IAM Role, an AWS CLI profile, environment variables, a JSON file on disk, or passed in credentials.
67
+
To learn more, please see the [below section](#aws-credentials)
69
68
70
69
## grunt-aws-lambda tasks
71
70
@@ -346,6 +345,25 @@ Type: `String`
346
345
Default value: `null`
347
346
348
347
If you wish to use a specific AWS credentials profile you can specify it here, otherwise it will use the environment default.
348
+
You can also specify it with the environment variable `AWS_PROFILE`
349
+
350
+
##### options.accessKeyId
351
+
Type: `String`
352
+
Default value: `null`
353
+
354
+
If you wish to use hardcoded AWS credentials you should specify the Access Key ID here
355
+
356
+
##### options.secretAccessKey
357
+
Type: `String`
358
+
Default value: `null`
359
+
360
+
If you wish to use hardcoded AWS credentials you should specify the Secret Access Key here
361
+
362
+
##### options.credentialsJSON
363
+
Type: `String`
364
+
Default value: `null`
365
+
366
+
If you wish to use hardcoded AWS credentials saved in a JSON file, put the path to the JSON here. The JSON must conform to the [AWS format](http://docs.aws.amazon.com/AWSJavaScriptSDK/guide/node-configuring.html#Credentials_from_Disk).
349
367
350
368
##### options.region
351
369
Type: `String`
@@ -357,8 +375,8 @@ Specify the AWS region your functions will be uploaded to. Note that if an ARN i
357
375
Type: `Integer`
358
376
Default value: `null`
359
377
Depending on your Lambda function, you might need to increase the timeout value. The default timeout assigned by AWS is currently 3 seconds.
360
-
If you wish to increase this timeout set the value here.
361
-
378
+
If you wish to increase this timeout set the value here.
@@ -483,15 +492,15 @@ Adding more warnings for various failure cases
483
492
484
493
### 0.4.0
485
494
486
-
* Added support for succeed and fail functions - [pull request by jonyo](https://github.com/Tim-B/grunt-aws-lambda/pull/11)
495
+
* Added support for succeed and fail functions - [pull request by jonyo](https://github.com/Tim-B/grunt-aws-lambda/pull/11)
487
496
* Added NPM to package.json - [pull request by jonyo](https://github.com/Tim-B/grunt-aws-lambda/pull/13), should address [issue 2](https://github.com/Tim-B/grunt-aws-lambda/issues/2#issuecomment-104805707)
488
497
* Added timeout and memory options - [timeout pull request by aidancasey](https://github.com/Tim-B/grunt-aws-lambda/pull/3)
489
498
* Bumped aws-sdk version
490
499
* Bumped adm-zip version, will hopefully address [issue 4](https://github.com/Tim-B/grunt-aws-lambda/issues/4)
* Fixed issue where task could be done before zip writing is finished - [pull request by qen](https://github.com/Tim-B/grunt-aws-lambda/pull/16)
* Fixed issue where task could be done before zip writing is finished - [pull request by qen](https://github.com/Tim-B/grunt-aws-lambda/pull/16)
495
504
* Monkey patched node-archiver to force permissions to be 777 for all files in package - [see issue 6](https://github.com/Tim-B/grunt-aws-lambda/issues/6)
0 commit comments