1259 Commits

Author SHA1 Message Date
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
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
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
Andrew Sprouse
d5b64c8c71 Added Access Control Allow Credentials for CORS settings fixes #2182 2017-01-18 17:12:31 -05:00
Daniel Schep
a163e65d9f invoke local python functions! closes #2862 2017-01-18 09:54:29 -05:00
Philipp Muens
158b1bf6cc Merge pull request #3107 from ssemyonov/fix-2404
Fix 2404 Receive "Deployment bucket is not in the same region..." when using eu-west-1
2017-01-18 14:19:48 +01:00
Sergey Semyonov
a636fc7f12 add missing stub restore() 2017-01-18 13:10:49 +00:00
Philipp Muens
f599977bb2 Fix serverless.yml indentations 2017-01-18 10:07:42 +01:00
Ryan Stelly
f0b762536c fix casing of dotnet artifact 2017-01-17 17:16:38 -06:00
Sergey Semyonov
df03336bee add tests for #2404 covering inconsistent AWS API responses 2017-01-16 10:39:57 +00:00
Sergey Semyonov
30ec78df37 fix #2404 by handling EU special case response for LocationConstraint 2017-01-16 10:23:35 +00:00
Philipp Muens
4f9cafb119 Minor cleanups 2017-01-14 14:04:43 -08:00
Philipp Muens
1f810f4018 Fix and update tests 2017-01-14 12:40:41 -08:00
horike37
64af4ef244 fixed the bug when Multi-line values is given in iot events 2017-01-14 15:33:07 +09:00
Erik Erikson
c93c5b29c4 Allow Role 'Fn::GetAtt' for Lambda role
Fix https://github.com/serverless/serverless/issues/3081

The fix is to allow the role defined for a Lambda to be a `{ 'Fn::GetAtt', [ 'LambdaLogicalId', 'Arn'] }` reference to a role in the current service.  If the `role` attribute is defined, check whether it is a role reference and if it is, fill the depends on attribute for the event mapping to be that logical ID.
Add tests that make sure this use case is covered in future incarnations of the code.
2017-01-10 18:12:26 -08:00
Vlad Golubev
0420a9c55b Add test: should create a service in the directory if using the "path" option with digits 2017-01-06 16:35:10 +02:00
Vlad Golubev
f678e45b02 Add support of numeric template creation path, fix #3063 2017-01-06 16:35:10 +02:00
Ryan S. Brown
d4a1aafd80 Add versionFunctions as an AWS provider option that will reduce the default number of stack outputs.
Per #2853, having versions as resources/outputs can trigger some limits
related to CloudFormation stack outputs. This leaves the existing
default, but if turned to `false` will reduce the number of outputs by
N, where N is the number of functions total.
2017-01-05 11:23:52 -05:00
Philipp Muens
6ae19fd724 Merge pull request #2952 from LightmakerCanada/fix-for-2508
Generate a single policy statement to cover all stream events
2017-01-03 15:48:50 +01:00
Eslam λ Hefnawy
c8439dc95f Merge pull request #3048 from serverless/create-error-on-overwrite
Create error on overwrite
2017-01-03 19:38:50 +07:00
Eslam λ Hefnawy
7fc058df63 Merge pull request #2141 from johnf/cognito_authorizer
add the start of cognito user pool authorizer support
2017-01-03 19:28:00 +07:00
Philipp Muens
bc368fdabd Fix broken validate test 2017-01-03 13:27:00 +01:00
Philipp Muens
3e6ee85a96 Fix failing tests 2017-01-03 12:50:27 +01:00
Philipp Muens
dd9935730e Merge pull request #3047 from serverless/fix-exit-code-noop
Fix "No updates to be performed." throwing Error code 1
2017-01-03 12:28:46 +01:00
Maciej Winnicki
1f881fb228
add tests and small refactor 2017-01-03 12:11:31 +01:00
Nik Graf
dc2d350ff5 Merge pull request #2954 from horike37/add-awsiot-to-event-source
Add IoT event source
2017-01-02 16:12:30 +01:00
Philipp Muens
ad58b4326f Merge pull request #2906 from tgjorgoski/fix-deployment-with-nested-stack
fix deployment monitoring
2017-01-02 14:05:07 +01:00
Eslam λ Hefnawy
840619febd Merge pull request #2820 from erikerikson/credentials-fixes
Credential Fixes Roundup
2017-01-02 19:52:37 +07:00
Eslam λ Hefnawy
99f90730c0 Merge pull request #2616 from laardee/install-with-name
Enables service installation with a name
2017-01-02 19:45:22 +07:00