6128 Commits

Author SHA1 Message Date
Philipp Muens
21b014efad
Merge pull request #6285 from joetravis/apiKeys-stackName
Use naming to get stackName
2019-06-21 13:05:46 +02:00
Philipp Muens
6d05d83edb
Merge pull request #6200 from mydiemho/myho/removeRegionDefaultFromBase
Remove default stage value in provider object
2019-06-21 12:54:57 +02:00
joetravis
f76f549e04 Use naming to get stackName 2019-06-20 10:05:15 -07:00
Philipp Muens
070c34b311
Merge pull request #6261 from mnapoli/import-relative-file
#6017 Allow to load plugin from path
2019-06-20 12:10:18 +02:00
Philipp Muens
5b3fe2525f
Merge pull request #6268 from JonathanWilbur/patch-1
Fix #6267
2019-06-20 12:01:06 +02:00
Matthieu Napoli
1019939969 #6017 Plugin relative paths should start with ./
Following the discussion in #6261 it should be possible to load plugin via relative paths, as long as the path starts with `./`.

For example:

```yaml
plugins:
    # will load myfirstplugin/plugin.js or myfirstplugin/plugin/index.js
    - './myfirstplugin/plugin'
    # will load mysecondplugin/plugin.js or mysecondplugin/plugin/index.js
    - './mysecondplugin/plugin'
```
2019-06-20 11:55:55 +02:00
Jonathan Wilbur
b96404763b
Make stackTrace undefined if err.stack undefined 2019-06-19 09:12:44 -04:00
Philipp Muens
d69d57ea09
Merge pull request #6244 from serverless/RemoveDuplicatePackaging
Fix duplicate packaging issue
2019-06-19 10:20:50 +02:00
Christoph Gysin
142a9d8304 Support external ApiGateway websocket API
fixes #6270
2019-06-19 09:21:54 +03:00
Jonathan Wilbur
c6f64e50e1
Fix #6267 2019-06-18 17:58:45 -04:00
Matthieu Napoli
152b4c460a Fix #6017 Allow to load plugin from path
The list of plugins can now contain relative paths.

For example:

```yaml
plugins:
    # will load myfirstplugin/plugin.js or myfirstplugin/plugin/index.js
    - 'myfirstplugin/plugin'
    # will load mysecondplugin/plugin.js or mysecondplugin/plugin/index.js
    - 'mysecondplugin/plugin'
```
2019-06-18 16:12:49 +02:00
Philipp Muens
d00e700bcf Remove unused code 2019-06-18 15:20:08 +02:00
Philipp Muens
214e09cb56 Move duplicate file detection to package zipping code 2019-06-18 15:18:10 +02:00
Christoph Gysin
f596448f70 Extract setting up routes with and without authorizer definition 2019-06-18 16:15:02 +03:00
Mariusz Nowak
b954fa4a17
Merge pull request #6255 from serverless/fix-timeout-response-template
Fix lambda integration timeout response template
2019-06-18 10:52:59 +02:00
Mariusz Nowak
be78da0b04
Merge branch 'master' into fix-timeout-response-template 2019-06-17 14:00:06 +02:00
Philipp Muens
ca830fd640
Merge pull request #6231 from DASPRiD/bugfix/request-model-api-gateway-reference
Reference custom ApiGateway for models and request validators if conf…
2019-06-17 13:59:37 +02:00
Mariusz Nowak
aedfbf289d
Merge pull request #6254 from serverless/improve-user-message
Improve user message
2019-06-17 13:48:04 +02:00
Philipp Muens
c0b51bc12f Address PR review comments / add tests 2019-06-17 13:01:02 +02:00
Tanner Barlow
c40710412c
Fix lint 2019-06-14 23:08:37 -07:00
Tanner Barlow
5038c78f34
Fix tests 2019-06-14 17:12:25 -07:00
Tanner Barlow
14044edaae
fix: Slim down Azure Functions template 2019-06-14 17:06:30 -07:00
Mariusz Nowak
138bbc3265
Improve user mesage 2019-06-14 13:21:15 +02:00
Mariusz Nowak
5282cab708
Fix timeout response template 2019-06-13 15:34:47 +02:00
Alex DeBrie
5d127d0f31 Fix duplicate packaging issue 2019-06-12 12:08:06 -05:00
Mariusz Nowak
093881b6a5
Add code comments 2019-06-12 16:00:29 +02:00
Mariusz Nowak
025d58579e
Fix setup of IAM policies for functions with custom names 2019-06-12 15:55:01 +02:00
Mariusz Nowak
426393b2b3
Configure test exposing issue with custom function name
Related to #6236
2019-06-12 15:48:27 +02:00
Mariusz Nowak
6796ccf866
Ensure tests reflect more closely a real world 2019-06-12 15:38:16 +02:00
Mariusz Nowak
d417a0fc4e
Seclude canonicalFunctionNamePrefix var 2019-06-12 14:58:24 +02:00
Mariusz Nowak
490e714ccd
Obtain path to statements once 2019-06-12 14:53:18 +02:00
Ben Scholzen (DASPRiD)
c5f4f1ab3f Reference custom ApiGateway for models and request validators if configured 2019-06-11 18:03:05 +02:00
Daniel Schep
2db59d6cab use path.basename 2019-06-11 08:52:00 -04:00
Daniel Schep
d7a9d2f877 Don't change signature of loadServiceFileParam 2019-06-11 08:48:58 -04:00
Daniel Schep
970a1cc3f8 refactor getServerlessConfigFile to simply accept a serverless object 2019-06-10 11:19:14 -04:00
Daniel Schep
846cdabece use minimist directly to parse the --config option early rather than instantiating CLI 2019-06-10 11:19:14 -04:00
Daniel Schep
79bb5acc48 Throw an error if sls config specifed doesnt exist 2019-06-10 11:19:14 -04:00
Daniel Schep
560bbb0d07 fix unit tests for packageService 2019-06-10 11:19:14 -04:00
Daniel Schep
37d0c71793 fix use of getServerlessConfigFilePath in packaging 2019-06-10 11:19:14 -04:00
Daniel Schep
94bf5a4382 delint 2019-06-10 11:19:14 -04:00
Daniel Schep
a1af588ccd improve memoization key for getServerlessConfigFile 2019-06-10 11:19:14 -04:00
Daniel Schep
2b81303370 --config option.
closes #5589
closes #4485
closes #4473
closes #4124
closes #5822
2019-06-10 11:19:14 -04:00
NomadBlacky
0daa26a92c Fix artifact path in aws-scala-sbt 2019-06-08 23:52:19 +09:00
NomadBlacky
393f57288d Migrate codebase to Scala 2.13.0 2019-06-08 23:19:58 +09:00
NomadBlacky
96dc83fc01 Update to Scala 2.13.0 2019-06-08 23:10:19 +09:00
Philipp Muens
e252259791 Fix linting issues 2019-06-06 12:27:19 +02:00
My Ho
5541f2b9ef
Fix tests 2019-06-05 16:08:51 -07:00
Edmundo Rodrigues
c393d4b22c feat(iam): use common prefix loggroup prefix to reduce size of iamRoleLambdaExecution to avoid reaching 10240 bytes limit 2019-06-05 17:33:35 -03:00
My Ho
97d62097c6
remove default stage value in provider object
the current default is using AWS region naming syntax,
this mean other cloud provider would have to add extra code
to set their default value.

Instead, region default should be left to each provider.
2019-06-05 10:51:06 -07:00
Philipp Muens
a02b31e91c Add support for S3 hosted package artifacts 2019-06-05 13:33:36 +02:00