3232 Commits

Author SHA1 Message Date
Philipp Muens
b22a2c9c48 Merge branch 'master' into aws-promisified-provider 2019-01-24 13:01:30 +01:00
Philipp Muens
36f98294bb
Merge pull request #4822 from serverless/ResourceCount
Add resource count and warning to info display
2019-01-24 12:23:47 +01:00
Philipp Muens
240968addc
Merge pull request #5720 from sdomagala/master
Lambda Layers - cast account id to string if number provided
2019-01-24 11:58:46 +01:00
drexler
911bedd0c0 add unit test 2019-01-23 20:32:11 -05:00
drexler
67ee7c66a6 default to error code if message is non-existent 2019-01-23 19:02:38 -05:00
Rocky Warren
2ea7446879 Allow individual packaging with TypeScript source maps 2019-01-23 15:14:12 -06:00
Daniel Schep
748dad8b3c test coverate for provided template 2019-01-23 14:00:09 -05:00
Daniel Schep
26980e86c4 a template for provided runtime with the bash sample from AWS 2019-01-23 13:46:19 -05:00
Alex DeBrie
4caa108f43 Restore the missing restore 2019-01-23 17:11:29 +00:00
Philipp Muens
c9a321df52
Merge branch 'master' into master 2019-01-23 15:38:14 +01:00
Philipp Muens
e5d4b4f390
Merge pull request #5311 from bodaz/master
Upgrade google-cloudfunctions to v2 and set defaults to node8 etc
2019-01-23 15:35:57 +01:00
Philipp Muens
c6701ff006
Merge pull request #5705 from snurmine/issues/5698
Convert reservedConcurrency to integer to allow use env var
2019-01-23 15:34:36 +01:00
Philipp Muens
cc6270e58b
Merge branch 'master' into master 2019-01-23 13:03:52 +01:00
Richard Davison
d9575d424c Added test when no origin or origins is provided 2019-01-23 09:08:35 +01:00
Richard Davison
01b529af43 Provide multi origin cors 2019-01-23 08:48:52 +01:00
Danny Varner
a88bc27801 Fix broken profiles 2019-01-22 22:53:20 -08:00
Jon Burgess
f490cb5458 Revert "Don't add newlines to echoed input"
This reverts commit e30e24222bd9cd584e127d8cd9ea85386c614857.

This breaks a couple of tests which are depending on:

    serverless.cli.consoleLog.lastCall.args[0]

being set.

Also, it introduces an inconsistency c.f. invokeLocalPython et al.

I think here, consistency and passing tests trumps the slight annoyance of each input charact appearing on a new line. At least, for the moment and until a better way is found.
2019-01-23 09:31:40 +11:00
Jon Burgess
3bfc724fb3 Ensure tty device exists before trying to open it 2019-01-23 09:17:03 +11:00
Daniel Schep
888eabdf6e lint 2019-01-22 15:23:28 -05:00
Daniel Schep
7fb23090d4 test coverage 2019-01-22 14:45:11 -05:00
Daniel Schep
9cf6e1eba7 lint 2019-01-22 14:24:16 -05:00
Daniel Schep
8543714f50 Fix sls plugin install -n @scoped/package 2019-01-22 14:18:46 -05:00
Philipp Muens
89d037c468
Merge pull request #5662 from jetbridge/master
Provide AWS_PROFILE from configuration for invoke local
2019-01-22 13:12:29 +01:00
Philipp Muens
da83822905 Fix and update tests 2019-01-22 13:01:24 +01:00
Philipp Muens
7bc381e06e
Merge pull request #5726 from toshi0607/features/add-google-go
Add google go template
2019-01-22 12:15:47 +01:00
Daniel Schep
011b579bd3
Merge pull request #5531 from exoego/logs-compact-permission
AWS: Consolidates Lambda::Permission objects for cloudwatchLog events
2019-01-21 14:51:07 -05:00
toshi0607
bf875a1d8c improve docs 2019-01-21 23:39:17 +09:00
toshi0607
c757f8a386 improve docs 2019-01-21 23:38:27 +09:00
toshi0607
e2e7160b76 fix mistakes 2019-01-21 22:34:58 +09:00
toshi0607
b58ec6aec7 🎉 add google go 2019-01-20 11:42:57 +09:00
Luan
91806cef44 Fix eslint issues
Signed-off-by: Luan <luan@luanmuniz.com.br>
2019-01-19 16:34:14 -02:00
Luan
96183686bf Create tests for #5664
Signed-off-by: Luan <luan@luanmuniz.com.br>
2019-01-19 16:27:43 -02:00
NomadBlacky
7f02d9714c Bump up sbt-plugins
+ sbt-assembly: 0.14.9
+ sbt-release: 1.0.11
2019-01-20 01:06:06 +09:00
NomadBlacky
83302b2883 Tweak build.sbt 2019-01-20 00:43:50 +09:00
NomadBlacky
404010ada5 Bump up aws-lambda-java-events in aws-scala-sbt 2019-01-20 00:42:33 +09:00
NomadBlacky
4942eabe34 Bump up Scala version to 2.12.8 in aws-scala-sbt 2019-01-20 00:40:55 +09:00
NomadBlacky
79084e2373 Bump up sbt version to 1.2.8 in aws-scala-sbt 2019-01-20 00:40:05 +09:00
NomadBlacky
1c0115ba50 Reduce files in aws-scala-sbt 2019-01-20 00:36:43 +09:00
Sebastian Domagała
b25582989e fix linting issues 2019-01-18 11:13:23 +01:00
Sebastian Domagała
9f89789742 add tests cases 2019-01-18 10:49:46 +01:00
Sebastian Domagała
61b0370957 cast account to to string if necessary 2019-01-18 10:32:10 +01:00
Jon Burgess
e30e24222b Don't add newlines to echoed input
Prior to this, debug output would look something like the following:

```
[1] pry(Kernel)>
f
o
o

=

"
f
o
o
"

=> "foo"

[2] pry(Kernel)>
```

i.e. there's a newline being added after each character is entered, making things somewhat difficult to read.
2019-01-18 11:56:30 +11:00
Jon Burgess
1530af2025 Make local ruby debugging work
This follows a similar change for local python invocation at ad5decb080/lib/plugins/aws/invokeLocal/invoke.py (L76-L82)

A handler such as the following will now pause at the breakpoint:

```ruby
require 'json'
require 'pry'

def hello(event:, context:)
  binding.pry # breakpoint
  { statusCode: 200, body: JSON.generate('Go Serverless v1.0! Your function executed successfully!') }
end
```
2019-01-18 11:37:08 +11:00
exoego
e334bcd40a Update message to include a case of complete deletion. 2019-01-18 06:26:30 +09:00
exoego
d4cb2b6684 Add tests. 2019-01-18 06:19:43 +09:00
Daniel Schep
d817ce08d4
Merge pull request #5687 from serverless/remove-platform-code
Remove platform code
2019-01-17 11:01:45 -05:00
exoego
d85a67cf37 Add detail and recovery operation. 2019-01-17 21:54:39 +09:00
Mischa Spiegelmock
b563fb218e attempting to create a test for invoke local with profile 2019-01-16 15:58:30 +02:00
Luan
79fe3adb85
Fix #5664 - Rollback fails due to a timestamp parsing error
When running sls rollback -t 1546961025152 the timestamp was being parsed as a string inside a Date Object.
This would return an Invalid Date, therefore, failing to convert the timestamp into a valid date.

In here we are checking to see if the date is already a valid one, otherwise convert the timestamp to a number and try again.
We are checking first because most cases we don't want to convert to numbers.

Fix #5664

Ps: We could add another check, if the date is still invalid, throw an Error, but that's not the scope of the issue.

Signed-off-by: Luan <luan@luanmuniz.com.br>
2019-01-16 10:46:00 -02:00
Philipp Muens
f83774469c
Merge pull request #5695 from gabrielkaputa/master
Increase @types/aws-lambda version in aws-nodejs-typescript template
2019-01-16 13:33:32 +01:00