4240 Commits

Author SHA1 Message Date
Eslam A. Hefnawy
f553547733 log group resources are now created even when no roles are created 2017-02-08 21:47:16 +07:00
Erik Erikson
230f37f4a4 Allow for Self-Reference
1. Newly allow '${self:}' as a valid reference to the current serverless.yml's root
  a. This allows for a more clean manner of passing names and identifiers around between projects.  Particularly, this facilitates exporting values from projects so they can be used in other projects via Fn::ImportValue.
2. Write a test ensuring the above
3. Document the new capability

Example usage: https://github.com/Nordstrom/hello-retail/pull/26/files
2017-02-07 19:19:30 -08:00
Vlad Golubev
9a8a9ddff4 Add missing unit tests for #getAllFunctionsNames 2017-02-08 00:03:10 +02:00
Vlad Golubev
854191cfbe Merge branch 'master' into preserve-gitignore-on-npm-publish
# Conflicts:
#	lib/plugins/create/create.js
2017-02-07 23:44:50 +02:00
Vlad Golubev
12ba45421c Merge branch 'master' into fix-average-functions-duration 2017-02-07 23:42:25 +02:00
Vlad Golubev
e8bf95997e Merge branch 'master' into fix-average-functions-duration 2017-02-07 23:41:50 +02:00
Philipp Muens
2cd1dfff0b Minor adjustments 2017-02-06 14:09:52 +01:00
Danny Cohn
7bbf9ce6d0 fix #2997 2017-02-05 00:11:20 -06:00
horike37
fd7e167807 Dropped name and description statements 2017-02-04 09:46:06 +09:00
horike37
3ada150d53 Merge branch 'add-cloudwatch-to-event-source' of github.com:horike37/serverless into add-cloudwatch-to-event-source 2017-02-04 09:03:01 +09:00
horike37
8bb29727d1 Merge branch 'master' into add-cloudwatch-to-event-source 2017-02-04 09:02:24 +09:00
Tanas Gjorgoski
c330a59a81 fix linting warnings 2017-02-03 19:12:47 +01:00
Tanas Gjorgoski
b1d064fc25 proper test for cognito user pool claims 2017-02-03 18:32:38 +01:00
Philipp Muens
66588856cb Update event naming
So that it won't clash when other CloudWatch events are implemented.
2017-02-03 14:55:38 +01:00
Andrey Tserkus
634f115118 fix typo in CLI test: construtor -> constructor 2017-01-31 01:50:17 -08:00
Andrey Tserkus
ffd6152de0 cover Error with tests; rename SError export to ServerlessError 2017-01-31 01:50:07 -08:00
Tanas Gjorgoski
4d3090d575 fix the commas 2017-01-30 16:49:52 +01:00
Tanas Gjorgoski
098173d907 change for the custom claims 2017-01-30 15:11:52 +01:00
Philipp Muens
b32803a8ff Fix wrong provider value assigning 2017-01-30 13:33:15 +01:00
Philipp Muens
54fbaadede Remove defaults service property 2017-01-30 11:03:40 +01:00
Eslam λ Hefnawy
fdd3470f92 Merge pull request #3145 from ryansb/bug/reduceMemoryUsage
Reduce memory consumption on deploy by at least 50%
2017-01-29 19:29:42 +07:00
Philipp Muens
20a2a48a74 Remove on-the-fly arn generation for displayed functions 2017-01-27 13:22:27 +01: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
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
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
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
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
James Thomas
ccac1bf1db Remove sudo and add link to repo 2017-01-25 15:16:38 +00: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
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
a30984d908 Fix broken unit test after merging #2434 2017-01-25 09:12:28 +01: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
Philipp Muens
9c067e84f9 Update stage and region retrieval 2017-01-23 13:28:17 +01:00
Philipp Muens
2181ba9478 Remove unused CloudFormation template 2017-01-23 13:21:10 +01:00
Philipp Muens
a3ce3edb72 Remove getStackName() method 2017-01-23 10:51:06 +01:00
Philipp Muens
a6c3240d62 Fix broken test after rebasing 2017-01-20 14:48:28 +01:00
Philipp Muens
116c79dbf8 Refactor function arn generation for info plugin 2017-01-20 14:45:11 +01:00
Eslam λ Hefnawy
1f7ee35321 Merge pull request #3042 from ryansb/optionalVersioning
Add the `versionFunctions` provider flag that will reduce the default nu…
2017-01-20 18:43:47 +07:00
Eslam λ Hefnawy
ec8a55a66e Merge pull request #2937 from UnitedIncome/feature/invoke-python
Invoke local python functions! closes #2862
2017-01-19 19:40:38 +07:00