5351 Commits

Author SHA1 Message Date
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
Daniel Schep
c0a48b1ef7 remove use of Object.entries & String.includes & Array.includes 2019-01-16 07:32:07 -05:00
Sami Nurminen
d2ab71cc51 Convert reservedConcurrency to integer to allow use env var 2019-01-15 22:45:39 +02:00
Takahiro Horike
07154d772f
Merge pull request #5694 from exoego/cross-region-same-stack-name
AWS: Request cache should add region as key to prevent cross-region cache collision
2019-01-16 00:32:48 +09:00
softprops
3517b1f621 type in test description 2019-01-13 23:31:51 -05:00
Daniel Schep
96906c1c70
Merge pull request #5686 from exoego/validation-after-var-resolution
AWS: Fix stage name validation timing and allow hyphen
2019-01-13 20:25:53 -05:00
Gabriel Kaputa
011e8d52cb Increase @types/aws-lambda version in aws-nodejs-typescript template 2019-01-14 00:29:55 +01:00
softprops
c2a4e93844 add aws provider test for unsupported apigw stage desc fields 2019-01-13 15:06:36 -05:00
exoego
2f76b6e08d Fix linting error. 2019-01-13 22:35:06 +09:00
exoego
4d4824f719 Add new property in jsdoc. 2019-01-13 22:16:09 +09:00
exoego
5790c3a69c Fix request cache to consider cross-region for ${cf.REGION}. 2019-01-13 22:15:45 +09:00
softprops
cfafd3c941 fix 'npm run lint' errors 2019-01-13 01:14:47 -05:00
softprops
80a672a051 add support for apigw xray traces by way of stageDescription 2019-01-13 00:31:47 -05:00
Austen Collins
539059f520
remove platform code 2019-01-11 18:10:45 -08:00
Austen Collins
b015498042
remove platform code 2019-01-11 18:01:04 -08:00
Austen Collins
6e316cca61
remove platform code 2019-01-11 17:51:15 -08:00
Austen Collins
45c65ba07d
remove platform code 2019-01-11 17:23:19 -08:00
Austen Collins
2a690f8f4c
remove platform code 2019-01-11 17:04:31 -08:00
Austen Collins
010dabe6ae
remove platform code 2019-01-11 17:00:56 -08:00
Austen Collins
6898bd8efd
remove platform code 2019-01-11 16:59:15 -08:00
exoego
997ac354f7 Update test for regression. 2019-01-12 07:39:17 +09:00
exoego
2f53ecab10 Drop validation before variable resolution. 2019-01-12 07:38:42 +09:00
Mischa Spiegelmock
7004831dd4 provide AWS_PROFILE from configuration for invoke local - same as region 2019-01-08 13:45:12 +02:00
Daniel Schep
d837e9baae Merge remote-tracking branch 'origin/master' into sls-5225 2019-01-07 13:25:57 -05:00
Daniel Schep
3489aed935
Merge pull request #5554 from rdsedmundo/issues/3447
Fix ResourceLimitExceeded for cloudwatchLog event
2019-01-07 12:56:48 -05:00
Daniel Schep
0896f311b1
Merge pull request #5312 from Limess/4496/handle-scoped-packages
Handle scoped npm packages in ${file()} variables
2019-01-07 10:56:25 -05:00
Daniel Schep
fb1069ff4b update jackson-databind to secure version 2019-01-07 09:04:26 -05:00
exoego
d74c0bb679 Deep-clone so modifying credentials in method does not affect original credentials. 2019-01-04 21:00:59 +09:00
exoego
337eb79b61 Add regression test for cf.REGION syntax. 2019-01-04 21:00:11 +09:00
Takahiro Horike
cfd6c621cc
Merge pull request #5639 from exoego/aws-stage-validation
Add stage name validation to AWS provider.
2019-01-04 20:00:32 +09:00
exoego
b37f5cdb4b Remove validation for CloudFront since it is already implemented in createStack.js 2019-01-04 18:40:19 +09:00
Daniel Schep
1a496a5d7b update print.js too 2019-01-03 08:53:22 -05:00
Daniel Schep
298d39c8c9 add variableSyntax change to print tests 2019-01-03 08:46:52 -05:00
Daniel Schep
f3273be273
Merge pull request #5631 from Imran99/fix-aws-failed-stack-create-behavoiur
change behaviour on initial stack create failed
2018-12-31 15:33:33 -05:00
exoego
85238c4331 Split validation: check underscore always and check hyphen only if http events are present. 2018-12-31 21:51:30 +09:00