1016 Commits

Author SHA1 Message Date
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
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
horike37
9a8e5cc465 update errormessage 2017-01-15 23:23:20 +09:00
horike37
3ad27484b5 add CloudWatch event source 2017-01-15 23:00:40 +09: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
f0ee493d18 Fix start / end date in metrics tests 2017-01-06 23:24:27 +02:00
Vlad Golubev
e1d8d7a208 Use os.homedir() instead of own implementation 2017-01-06 23:14:03 +02:00
Vlad Golubev
184d4fe46a Add tests to verify valid metrics Period param 2017-01-06 23:03:17 +02:00
Vlad Golubev
c2a6b4ae24 Fix getMetrics test by wrapping date, as we don't call validate 2017-01-06 23:02:51 +02:00
Vlad Golubev
9385f968e3 Fix ESLint errors 2017-01-06 22:24:28 +02:00
Vlad Golubev
39b890dbd5 Refactor getMetrics method to reduce duplication 2017-01-06 22:21:12 +02:00
Vlad Golubev
f2ff20649c Display 0 as average function duration if no data by given period 2017-01-06 22:02:26 +02:00
Vlad Golubev
f090f86d30 Remove unused stage and region arguments from provider request 2017-01-06 21:58:11 +02:00
Vlad Golubev
d72b9511d1 Round average function duration to 2 digits after dot 2017-01-06 21:52:51 +02:00
Vlad Golubev
f2eaae5517 Add test: should display correct average of service wide average function duration 2017-01-06 21:46:54 +02:00
Vlad Golubev
7d7f7c7054 Refactor getting aws provider stage 2017-01-06 20:53:08 +02:00
Vlad Golubev
0fb4cf6fba Refactor getting aws provider region 2017-01-06 20:53:08 +02:00
Vlad Golubev
c86e09a63c Refactor calculating metrics counts 2017-01-06 20:53:08 +02:00
Vlad Golubev
1c3dbd4c70 Further refactor parsing human start dates in metrics 2017-01-06 20:53:08 +02:00
Vlad Golubev
37f4545139 Add getAllFunctionsNames to Service class 2017-01-06 18:59:36 +02:00
Vlad Golubev
f1fdbcf0a0 Simplify validating function name in metrics 2017-01-06 18:44:28 +02:00
Vlad Golubev
59051c1fb3 Use moment.js to format date in metrics tests 2017-01-06 18:34:49 +02:00
Vlad Golubev
b880acdc3c Use regex to check if date is in since format 2017-01-06 18:29:28 +02:00
Vlad Golubev
f3c09efee2 Use moment.js to set default yesterday date 2017-01-06 18:24:45 +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
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
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
Kurt Lee
50e9c5fb7d add features on AWSInvokeLocal Plugin.
1. Added support js file that has export as an data input
2. You can specify the location of handlers, such as “/dst”
3. Show JSON.parse result if Content-Type = ‘application/json’
2017-01-01 17:58:56 +09:00
paulSambolin
2c5ef8e6b9 FIx lint errors 2016-12-21 14:38:17 -05:00
paulSambolin
122afad222 handle error 2016-12-20 15:38:28 -05:00
paulSambolin
38bd3dda8a updated comment 2016-12-20 14:55:37 -05:00
paulSambolin
45f43ced5e added comment 2016-12-20 14:42:36 -05:00
paulSambolin
71b532bb47 new attempt 2016-12-20 14:24:04 -05:00
paulSambolin
1b77e68e1b added period to message 2016-12-20 13:56:20 -05:00
paulSambolin
8308e75b06 resolve(data) 2016-12-20 13:18:13 -05:00
Philipp Muens
96117bf6fb Merge pull request #2991 from serverless/update-status-code-regex-to-match-newlines
Update status code regex to match newlines
2016-12-20 18:08:12 +01:00
paulSambolin
851e4479c5 Do no fail when a stack requires no updates 2016-12-20 11:35:50 -05:00