7343 Commits

Author SHA1 Message Date
Eslam A. Hefnawy
689f17185b removed cfLogs from integration tests 2017-01-27 17:42:33 +07:00
Eslam A. Hefnawy
d97e49f376 create loggroup resource by default 2017-01-27 17:29:30 +07:00
Eslam A. Hefnawy
ce7f9bbc20 creating log groups 2017-01-27 17:29:30 +07:00
James Thomas
3c2ad1dc64 Changing Github repo links to OpenWhisk examples 2017-01-27 10:22:37 +00:00
James Thomas
7c5c1a0924 Removing AWS references.
There were some remaining AWS references caught during code reivew.
2017-01-27 10:17:28 +00:00
Eslam λ Hefnawy
dde1b48ad5 Merge pull request #3083 from erikerikson/allow-role-reference-in-func-role-attr
Allow Role 'Fn::GetAtt' for Lambda `role`
2017-01-27 16:48:37 +07:00
Philipp Muens
e7b335102f Merge pull request #3149 from erikerikson/enable-long-stack-traces
Enable Long Stack Traces
2017-01-27 10:41:19 +01:00
Philipp Muens
3839b0bcb6 Update to use new Promise.config syntax 2017-01-27 10:36:01 +01:00
Philipp Muens
69671a2484 Merge pull request #3152 from erikerikson/bug-fix-use-sts-instead-of-iam-to-get-account-id
Use STS getCallerIdentity instead of IAM getUser
2017-01-27 10:33:05 +01:00
Erik Erikson
5bd31687b5 Use STS getCallerIdentity instead of IAM getUser
A possible fix for https://github.com/serverless/serverless/issues/3151
Switch from using IAM `getUser` to get the account ID of the current user to calling STS `getCallerIdentity`.  It is expected that this is a less protected segment of rights and will, as a result, impact fewer users.  Of course, this is hard to guarantee.
Changes tests appropriately

Related Docs:
http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/STS.html#getCallerIdentity-property
2017-01-26 18:14:15 -08:00
Danny King
df54406727 update copy 2017-01-26 16:49:30 -08:00
Danny King
0d2d4848eb update docs page to include whisk guide 2017-01-26 16:44:23 -08:00
Erik Erikson
363674c769 Enable Long Stack Traces
When an error occurs, we get the immediate stack trace but not the entire stack trace.  This often results in traces like:

```
[Container] 2017/01/26 21:33:22 ServerlessError: Access Denied
[Container] 2017/01/26 21:33:22 at (/usr/local/lib/node_modules/serverless/lib/plugins/aws/provider/awsProvider.js:177:20)
[Container] 2017/01/26 21:33:22 at Request.<anonymous> (/usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/request.js:355:18)
[Container] 2017/01/26 21:33:22 at Request.callListeners (/usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/sequential_executor.js:105:20)
[Container] 2017/01/26 21:33:22 at Request.emit (/usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/sequential_executor.js:77:10)
[Container] 2017/01/26 21:33:22 at Request.emit (/usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/request.js:668:14)
[Container] 2017/01/26 21:33:22 at Request.transition (/usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/request.js:22:10)
[Container] 2017/01/26 21:33:22 at AcceptorStateMachine.runTo (/usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/state_machine.js:14:12)
[Container] 2017/01/26 21:33:22 at /usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/state_machine.js:26:10
[Container] 2017/01/26 21:33:22 at Request.<anonymous> (/usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/request.js:38:9)
[Container] 2017/01/26 21:33:22 at Request.<anonymous> (/usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/request.js:670:12)
[Container] 2017/01/26 21:33:22 at Request.callListeners (/usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/sequential_executor.js:115:18)
[Container] 2017/01/26 21:33:22 at Request.emit (/usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/sequential_executor.js:77:10)
[Container] 2017/01/26 21:33:22 at Request.emit (/usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/request.js:668:14)
[Container] 2017/01/26 21:33:22 at Request.transition (/usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/request.js:22:10)
[Container] 2017/01/26 21:33:22 at AcceptorStateMachine.runTo (/usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/state_machine.js:14:12)
[Container] 2017/01/26 21:33:22 at /usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/state_machine.js:26:10
```

This tells me nothing about where the operation originated from that resulted in the "Access Denied" error.  Thus, my sad face surfaces.

I like my happy face and its probability of showing increases when I have messages that look like:

```
[Container] 2017/01/26 22:33:13 ServerlessError: Access Denied
[Container] 2017/01/26 22:33:13 at Response.<anonymous> (/usr/local/lib/node_modules/serverless/lib/plugins/aws/provider/awsProvider.js:162:20)
[Container] 2017/01/26 22:33:13 at Request.<anonymous> (/usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/request.js:355:18)
[Container] 2017/01/26 22:33:13 at Request.callListeners (/usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/sequential_executor.js:105:20)
[Container] 2017/01/26 22:33:13 at Request.emit (/usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/sequential_executor.js:77:10)
[Container] 2017/01/26 22:33:13 at Request.emit (/usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/request.js:668:14)
[Container] 2017/01/26 22:33:13 at Request.transition (/usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/request.js:22:10)
[Container] 2017/01/26 22:33:13 at AcceptorStateMachine.runTo (/usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/state_machine.js:14:12)
[Container] 2017/01/26 22:33:13 at /usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/state_machine.js:26:10
[Container] 2017/01/26 22:33:13 at Request.<anonymous> (/usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/request.js:38:9)
[Container] 2017/01/26 22:33:13 at Request.<anonymous> (/usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/request.js:670:12)
[Container] 2017/01/26 22:33:13 at Request.callListeners (/usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/sequential_executor.js:115:18)
[Container] 2017/01/26 22:33:13 at Request.emit (/usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/sequential_executor.js:77:10)
[Container] 2017/01/26 22:33:13 at Request.emit (/usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/request.js:668:14)
[Container] 2017/01/26 22:33:13 at Request.transition (/usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/request.js:22:10)
[Container] 2017/01/26 22:33:13 at AcceptorStateMachine.runTo (/usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/state_machine.js:14:12)
[Container] 2017/01/26 22:33:13 at /usr/local/lib/node_modules/serverless/node_modules/aws-sdk/lib/state_machine.js:26:10
[Container] 2017/01/26 22:33:13 From previous event:
[Container] 2017/01/26 22:33:13 at /usr/local/lib/node_modules/serverless/lib/plugins/aws/provider/awsProvider.js:150:14
[Container] 2017/01/26 22:33:13 at doCall (/usr/local/lib/node_modules/serverless/lib/plugins/aws/provider/awsProvider.js:129:9)
[Container] 2017/01/26 22:33:13 at /usr/local/lib/node_modules/serverless/lib/plugins/aws/provider/awsProvider.js:140:14
[Container] 2017/01/26 22:33:13 From previous event:
[Container] 2017/01/26 22:33:13 at BbPromise (/usr/local/lib/node_modules/serverless/lib/plugins/aws/provider/awsProvider.js:127:38)
[Container] 2017/01/26 22:33:13 at AwsProvider.request (/usr/local/lib/node_modules/serverless/lib/plugins/aws/provider/awsProvider.js:143:12)
[Container] 2017/01/26 22:33:13 at AwsDeploy.<anonymous> (/usr/local/lib/node_modules/serverless/lib/plugins/aws/deploy/lib/configureStack.js:23:35)
[Container] 2017/01/26 22:33:13 From previous event:
[Container] 2017/01/26 22:33:13 at AwsDeploy.configureStack (/usr/local/lib/node_modules/serverless/lib/plugins/aws/deploy/lib/configureStack.js:23:10)
[Container] 2017/01/26 22:33:13 From previous event:
[Container] 2017/01/26 22:33:13 at AwsDeploy.hooks.deploy:initialize (/usr/local/lib/node_modules/serverless/lib/plugins/aws/deploy/index.js:42:10)
[Container] 2017/01/26 22:33:13 at /usr/local/lib/node_modules/serverless/lib/classes/PluginManager.js:160:50
[Container] 2017/01/26 22:33:13 at processImmediate [as _immediateCallback] (timers.js:383:17)
[Container] 2017/01/26 22:33:13 From previous event:
[Container] 2017/01/26 22:33:13 at PluginManager.run (/usr/local/lib/node_modules/serverless/lib/classes/PluginManager.js:160:22)
[Container] 2017/01/26 22:33:13 at Serverless.run (/usr/local/lib/node_modules/serverless/lib/Serverless.js:91:31)
[Container] 2017/01/26 22:33:13 at /usr/local/lib/node_modules/serverless/bin/serverless:21:50
```

That is **clearly** (relatively speaking) a lack of S3 rights and I can fix that!
2017-01-26 14:53:48 -08:00
Ryan S. Brown
12c2ad906c Update test to match the S3 object body readStream points to the artifact zipfile path 2017-01-26 16:46:13 -05:00
Yoriki Yamaguchi
3ebc9772d1 Merge branch 'master' into feat-add-support-for-cfn-service-role 2017-01-27 02:19:01 +09:00
Ryan S. Brown
8b6b3033f9 Reduce memory usage of deploy/upload step
Switch to using a stream to read artifacts at upload, because it was
being read into a `const` that the AWS SDK had to then copy to a
bytearray that was wrapped in a TLSStream object, duplicating the
artifact several times.
2017-01-26 08:11:21 -05:00
Eslam λ Hefnawy
1d8d8b1926 Merge pull request #3122 from jthomas/openwhisk-templates
Adding OpenWhisk NodeJS template to create plugin.
2017-01-26 20:03:15 +07:00
Eslam λ Hefnawy
96139e70ab Merge pull request #2736 from asprouse/master
Added Access-Control-Allow-Credentials for CORS settings fixes #2182
2017-01-26 19:31:51 +07:00
Philipp Muens
bdcb0f47a7 Merge pull request #3141 from erikerikson/bug-fix-detect-unsupported-stream-types
Bug fix detect unsupported stream types
2017-01-26 13:04:04 +01:00
Philipp Muens
a7e09a7a5d Merge pull request #3143 from serverless/add-missing-use-stricts-to-js-scripts
Add missing "use strict" definitions
2017-01-26 10:50:41 +01:00
Philipp Muens
72019f2a91 Add missing "use strict" definitions 2017-01-26 10:07:37 +01:00
Philipp Muens
90a34cbf04 Merge pull request #3138 from laardee/update-examples-and-plugins
updates readme examples and plugins
2017-01-26 09:09:23 +01:00
Yoriki Yamaguchi
f5e3278b88 fix alignment 2017-01-26 12:29:35 +09:00
Yoriki Yamaguchi
199fb76eca add cfnRole to doc 2017-01-26 12:27:06 +09:00
Erik Erikson
4a38ac3478 Add Error Case Detection
The error case of a stream event declaration declaring an unsupported event (type was never checked) was not handled in #2952.  Adding it here.
2017-01-25 15:40:41 -08:00
Erik Erikson
65a57b4fb3 Add Error Case Detection
The error case of a stream event declaration declaring an unsupported event (type was never checked) was not handled in https://github.com/serverless/serverless/pull/2952.  Adding it here.
2017-01-25 14:43:08 -08:00
Eetu Tuomala
c95f4bfda9 update readme examples and plugins with npm run docs 2017-01-25 22:13:06 +02:00
Philipp Muens
93a8a56b16 Merge pull request #3133 from ryansb/docs/versionFunctions
Add docs for AWS provider `versionFunctions` option.
2017-01-25 16:30:51 +01:00
James Thomas
ccac1bf1db Remove sudo and add link to repo 2017-01-25 15:16:38 +00:00
James Thomas
16eae684b8 update docs for schedule event 2017-01-25 15:11:58 +00:00
Ryan S. Brown
2cb109321c Update docs to reflect current default 2017-01-25 09:10:04 -05:00
Eslam λ Hefnawy
ed4a66d874 Merge pull request #2796 from dougmoscrop/existing_sns
add Support for SNS Subscription to existing topics
2017-01-25 20:04:31 +07:00
Philipp Muens
6585de61ec Update integration test so that it works with Jest 2017-01-25 13:28:42 +01:00
Yoriki Yamaguchi
e86e285a1b add RoleARN support to removeStack call 2017-01-25 19:26:29 +09:00
Yoriki Yamaguchi
525f3420fd add RoleARN support to updateStack call 2017-01-25 19:25:49 +09:00
Yoriki Yamaguchi
49ada0530b add RoleARN support to createStack call 2017-01-25 19:25:40 +09:00
Philipp Muens
72de326b0f Update additional docs 2017-01-25 09:27:35 +01:00
Philipp Muens
32cc6d5575 Merge pull request #3132 from davetownsend/master
Add missing "local" qualifiers for invoke local function examples
2017-01-25 09:23:03 +01:00
Philipp Muens
f2714aacee Merge pull request #3136 from serverless/fix-broken-unit-test
Fix broken unit test after merging #2434
2017-01-25 09:19:14 +01:00
Philipp Muens
a30984d908 Fix broken unit test after merging #2434 2017-01-25 09:12:28 +01:00
Ryan S. Brown
c557513afd Add docs for AWS provider versionFunctions option. 2017-01-24 17:06:00 -05:00
Dave Townsend
71abfc5d2c Add missing "local" qualifiers for invoke local function examples 2017-01-24 13:45:47 -07:00
James Thomas
b68bcce72c Add events documentation 2017-01-24 16:29:24 +00:00
James Thomas
380cb999c6 Updating CLI reference documentatin 2017-01-24 14:40:10 +00:00
James Thomas
969e6d1be6 Add OpenWhisk example for Node 2017-01-24 14:15:27 +00:00
James Thomas
a01d080fe4 Add OpenWhisk docs 2017-01-24 13:29:13 +00:00
Eslam λ Hefnawy
1cb298d592 Merge pull request #2434 from fruffin/fix-2418
[Fix #2418] Allow function event definitions to be variables
2017-01-24 20:15:34 +07:00
Doug Moscrop
acf74c4c96 add Support for SNS Subscription to existing topics 2017-01-23 15:13:45 -05:00
Eslam λ Hefnawy
a19fbfbbb3 Merge pull request #3125 from serverless/refactor-function-arn-for-info-plugin
BREAKING - Refactor function arn generation for info plugin
2017-01-23 21:11:59 +07:00
James Thomas
2774f8d327 Adding OpenWhisk NodeJS template to create plugin.
Modified create plugin to support this provider template.
Added templates files under the templates folder.
Included tests to verify this works.
2017-01-23 13:44:38 +00:00