1902 Commits

Author SHA1 Message Date
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
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
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
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
3489aed935
Merge pull request #5554 from rdsedmundo/issues/3447
Fix ResourceLimitExceeded for cloudwatchLog event
2019-01-07 12:56:48 -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
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
Takahiro Horike
b7936defe0
Merge pull request #5378 from medikoo/fix-error-output
Fix error log output
2018-12-31 15:48:09 +09:00
Imran
91c71faea8 fix linting 2018-12-31 10:48:59 +11:00
Imran
ee3c81db88 revert auto formating 2018-12-31 10:37:28 +11:00
Imran
e54af4012f fix linting errors 2018-12-31 10:34:03 +11:00
Imran
e3f1b78c39 fix build 2018-12-31 10:17:14 +11:00
Imran
02fb66339e url encode querystring 2018-12-31 10:06:57 +11:00
Imran
6d941a39fe log cloudformation stack link 2018-12-31 09:54:00 +11:00
exoego
e694cd1abf Refactor: getStage returns dev as default. 2018-12-31 07:43:32 +09:00
exoego
0f1a47a957 Add test to increase coverage. 2018-12-30 23:17:32 +09:00
exoego
b9d183fa8c Validate using RegExp. 2018-12-30 23:10:20 +09:00
exoego
4de7995139 Fix linting error. 2018-12-30 23:00:57 +09:00
exoego
a8194030e2 Add stage name validation to AWS provider. 2018-12-30 22:53:58 +09:00
exoego
b98afe7430 Fix lint errors. 2018-12-30 13:44:50 +09:00
exoego
6731ff3128 Add cron syntax validation that validates only number of fields. 2018-12-30 13:36:57 +09:00
exoego
6d4f12ebcf Add rate syntax validation. 2018-12-30 13:36:57 +09:00
exoego
46170c9630 Merge remote-tracking branch 'upstream/master' into logs-compact-permission 2018-12-30 08:48:41 +09:00