5351 Commits

Author SHA1 Message Date
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
Jonathan Goldwasser
bdce10cb07 Show valid iam role statements examples in docs and templates 2017-01-11 18:47:25 +01: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
Vlad Golubev
da18517fcd Store .gitignore as gitignore in template dir 2017-01-06 17:24:44 +02: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
Maciej Winnicki
30368bdf14 Merge pull request #2971 from bbilger/master
update aws-java-gradle and aws-java-maven templates
2017-01-02 13:05:58 +01:00
Philipp Muens
0057164a80 Merge branch 'master' into create-error-on-overwrite 2017-01-02 12:53:33 +01: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
Maciej Winnicki
a20cfbed15 Merge pull request #3019 from FLGMwt/csharp-powershell-build-script
add build.ps1 and update tests&docs
2016-12-28 14:08:47 +01:00
Ryan Stelly
bef9e97cd9 rename Release to release 2016-12-28 06:57:16 -06:00
Maciej Winnicki
8403d83def Merge pull request #3014 from serverless/add-check-for-preexistent-service-directory
Add check for preexistent service directory
2016-12-28 11:35:29 +01:00
Paul Fryer
49e804fe8e Need to create the right case
The "release" folder needs to be lowercase, not "Release".
2016-12-26 17:14:28 -08:00
Ryan Stelly
d2eb4c62cb add uild.ps1 and update tests&docs 2016-12-23 12:03:20 -06:00
Philipp Muens
4c24b25876 Add check for preexistent service directory 2016-12-23 11:02:09 +01:00