Jonathan Goldwasser
bdce10cb07
Show valid iam role statements examples in docs and templates
2017-01-11 18:47:25 +01:00
Eslam λ Hefnawy
112cf554bd
Merge pull request #3064 from vladgolubev/add-support-numeric-template-path
...
Add support of numeric template creation path
2017-01-11 16:02:03 +07: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
Maciej Winnicki
099e3841e8
Merge pull request #3082 from serverless/fix-preuninstall-promise-problem
...
Fix Preuninstall Promise problem
2017-01-10 17:58:16 -08:00
Philipp Muens
b18f67e27b
Fix Preuninstall Promise problem
2017-01-10 17:16:42 -08:00
Maciej Winnicki
46cace9b84
Merge pull request #3070 from serverless/add-docker-detection
...
Add Docker detection
2017-01-10 12:07:04 -08:00
Philipp Muens
791880911a
Remove unnecessary assertions
2017-01-10 08:57:43 -08:00
Philipp Muens
dc8fe5c22f
Remove unnecessary getRootPath method
2017-01-10 08:16:17 -08:00
horike37
122ee02228
update description in tests code
2017-01-10 06:27:14 +09:00
Philipp Muens
2d2ba4521d
Update Docker detection to be cgroup based
...
This ensures a more stable detection strategy since .dockerenv might be not around for the long term.
2017-01-09 11:15:12 -08:00
horike37
c75b0650d9
add integration test for iot event
2017-01-10 01:22:27 +09:00
Philipp Muens
bf2c6bfc56
Merge pull request #3068 from vladgolubev/eslint-cache
...
Dramatically improve ESLint’s running time by enabling cache
2017-01-09 01:13:30 +01:00
Philipp Muens
ce8bbc4885
Add Docker detection
2017-01-08 14:19:25 +01:00
Vlad Golubev
7c855a481b
4x speed increase of ESLint by adding --cache
2017-01-07 00:41:10 +02: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
Philipp Muens
6d948411f9
Update RELEASE_CHECKLIST with additional steps
2017-01-06 09:22:25 +01:00
Philipp Muens
f8eadf4df3
Add script which generates list of release contributors
2017-01-05 20:12:59 +01: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
Eslam λ Hefnawy
0d8910ec4b
Merge pull request #3058 from serverless/releasing-v1.5.0
...
releasing v1.5.0
v1.5.0
2017-01-05 21:41:22 +07:00
Eslam A. Hefnawy
248839852b
releasing v1.5.0
2017-01-05 21:30:02 +07:00
Philipp Muens
1f3923ae07
Merge pull request #3056 from serverless/add-pre-and-post-install-scripts-to-package-files
...
Add pre- and postinstall scripts to package
2017-01-05 09:12:24 +01:00
Philipp Muens
93c87468be
Add pre- and postinstall scripts to package
2017-01-04 17:17:29 +01:00
David Wells
809a28a55d
Merge pull request #3053 from serverless/updateReadmeInstructions
...
update examples and plugins and add note on where to update data
2017-01-03 21:17:01 -08:00
davidwells
08b9b2b86c
update examples and plugins and add note on where to update data
2017-01-03 21:09:26 -08: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