GuruRAM
cf1260a372
#4852 fix by rethrowing a module loading exception in aws invoke local
2018-04-03 23:13:04 +03:00
Devin Fee
d1d1b05cea
Fixed python module parsing ( #4755 )
...
* Fixed python module parsing
Ref: https://github.com/serverless/serverless/issues/4663#issuecomment-366931491
* Update index.js
* Update index.js
2018-02-21 18:59:42 +01:00
Takahiro Horike
4b71faf212
Merge pull request #4596 from Instabridge/invokelocal-pojo
...
InvokeLocal/Java: support POJO input and different handler names
2018-01-13 14:53:12 +09:00
Daniel Schep
211ba71077
Don't have Python buffer it's output
2018-01-10 18:38:17 -05:00
Jesús A. Álvarez
d9c986e97f
pass handler name to java
2017-12-20 16:21:59 +01:00
Erik Erikson
bf8d57fa9f
Improve Stage and Region Usage
...
Remove the errant (but understandable) distributed usage of region and stage settings. This otherwise locks in a multitude of bugs around the improper algorithm for selecting (given all context) the proper region or stage setting. Instead, all code should use the centralized algorithm for determining such values. This creates a strange first and second class configuration concept but these two are sufficiently varied and complex in their creation and use that this seems appropriate.
2017-12-11 16:39:44 -08:00
Rafal Wilinski
0b8f1b4678
Change colon to path.delimeter
2017-09-21 09:03:47 +02:00
Rafal Wilinski
cf3f4e6cd9
Change template literal to path.join
2017-09-20 13:03:39 +02:00
Rafal Wilinski
6e05ce8f9c
Merge branch 'master' into window-env-path
2017-09-19 16:04:14 +02:00
Rafal Wilinski
bfe1dedc3c
Obey VIRTUAL_ENV on Windows
2017-09-19 16:01:41 +02:00
Philipp Muens
a1cf9fd65e
Minor fixes
2017-09-18 12:29:37 +02:00
Philipp Muens
ff03b89c2f
Minor fixes to avoid race conditions
2017-09-18 11:06:14 +02:00
Rafal Wilinski
6b74a9c68b
Change fs sync calls to async graceful
2017-09-13 11:09:45 +02:00
Rafal Wilinski
5e8d67ce4b
Code review fixes
2017-09-13 10:59:14 +02:00
Rafal Wilinski
105de7a60f
Throw an error if artifact doesn't exist
2017-09-12 15:01:16 +02:00
Rafal Wilinski
f3d9d0f53c
Add toString() notice
2017-09-12 14:39:18 +02:00
Rafal Wilinski
c304aab55d
Change javaBridgePath to include pom.xml
2017-09-11 18:34:12 +02:00
Rafal Wilinski
0423c6e228
Improve tests coverage, add documentation
2017-09-06 12:43:34 +02:00
Rafal Wilinski
b1425c5ad5
Context related fixes
2017-09-02 22:11:04 +02:00
Rafal Wilinski
3cf32ef60a
Add custom context passing
2017-09-02 22:02:16 +02:00
Rafal Wilinski
faf696b77d
Add maven as dependency manager
2017-09-02 15:45:31 +02:00
Rafal Wilinski
a0303817b8
Invoke local java functionality
2017-09-01 19:15:33 +02:00
Rafal Wilinski
b5e1564ab6
Merge branch 'master' into add-context
2017-08-21 22:59:37 +02:00
Eslam λ Hefnawy
0530627b33
Merge pull request #4047 from Nevon/time-remaining-in-millis
...
Fix behavior of getRemainingTimeInMillis in local invokation
2017-08-21 21:31:54 +07:00
Rafał Wiliński
5e5f71df65
Add context and contextPath flags to invoke local cmd
2017-08-19 17:30:52 +02:00
Philipp Muens
03afbcb03f
Merge pull request #4036 from dzimine/DZ/fix_3788
...
Optionally skip parsing input to JSON when using `invoke` and `invoke local`
2017-08-18 15:20:22 +02:00
Philipp Muens
b05143e07a
Merge branch 'master' into py-win32-invokeLocal
2017-08-18 13:58:52 +02:00
Tommy Brunn
d4766254a6
Fix behavior of getRemainingTimeInMillis in local invokation
2017-08-05 16:19:33 +02:00
Dmitri Zimine
c4374ec6b1
Optionally pass raw string, take 1
2017-08-03 10:28:53 -07:00
Daniel Schep
1bce9eb1c3
Just remove PATH override to allow windows & non-standard locations & pyenv to work
2017-07-06 22:45:55 -04:00
Daniel Schep
d5e12e9ed0
Also set region env vars from config, not just CLI, for invoke local
2017-07-06 11:06:45 -04:00
Daniel Schep
bb725036cf
Just use python.exe on windows
2017-06-22 15:40:03 -04:00
Frank Schmid
aca8db9ba7
Set IS_LOCAL for every provider. Added unit tests.
2017-05-29 11:15:32 +02:00
Frank Schmid
c85300e4d4
Set IS_LOCAL environment variable with invoke local command
2017-05-18 10:55:43 +02:00
Daniel Schep
e1c27c3569
🐍 🐍 🐍 Python3.6 support is coming to Lambda!
...
closes #3482
https://aws.amazon.com/releasenotes/5198208415517126
2017-04-18 17:57:48 -04:00
Assaf Lavie
b5a365e055
support any AWS nodejs runtime, not just 4.3
2017-03-23 13:46:45 +02:00
Eslam λ Hefnawy
8a32b39c37
Merge pull request #3037 from breath103/master
...
add features on AWSInvokeLocal Plugin.
2017-03-13 19:23:39 +08:00
Daniel Schep
1f0e671f5b
Add virtualenv suppport to Python invokeLocal
...
Since the invoke local functionality overrides `process.env.PATH`, only the
system python is found, not the python provided by an active virtualenv. This
checks for the `VIRTUAL_ENV` environment variable and if present, adds it's bin
dir to `PATH`.
2017-03-09 16:47:26 -05:00
Daniel Schep
a163e65d9f
invoke local python functions! closes #2862
2017-01-18 09:54:29 -05:00
Kurt Lee
50e9c5fb7d
add features on AWSInvokeLocal Plugin.
...
1. Added support js file that has export as an data input
2. You can specify the location of handlers, such as “/dst”
3. Show JSON.parse result if Content-Type = ‘application/json’
2017-01-01 17:58:56 +09:00
Eslam A. Hefnawy
08009c2945
handling strings
2016-12-13 18:08:05 +07:00
Eslam A. Hefnawy
142946e295
fixed bug where you can now invoke without any input data
2016-12-13 17:52:03 +07:00
Maciej Winnicki
5a978afa92
add support for stdin in invoke command
2016-12-08 10:48:53 +01:00
Eslam A. Hefnawy
343439f157
removed double default region setting
2016-12-07 16:55:19 +07:00
Eslam A. Hefnawy
9bcde02ce6
lowercase MemorySize in invoke local
2016-12-07 16:44:24 +07:00
Eslam A. Hefnawy
f8dc2481ca
added default lambda env vars to local invoke
2016-12-07 16:44:24 +07:00
Maciej Winnicki
b494005543
fix setting exit code
2016-12-02 18:50:46 +01:00
Maciej Winnicki
ca5b9e119e
fix returning error from local invocation
2016-12-02 10:14:42 +01:00
Philipp Muens
a39e2969de
Remove reassignment of this.options.data if JSON parsing fails
2016-11-29 15:06:10 +01:00
Philipp Muens
f02c990fd8
Remove check if options.data exists
2016-11-29 13:32:29 +01:00