7726 Commits

Author SHA1 Message Date
Mariusz Nowak
54da2c23a1 refactor(Variables): Ensure to not resolve any value with promise 2021-03-18 14:36:18 +01:00
Mariusz Nowak
a867515bc0 refactor(Variables): Simply Array.from operation 2021-03-18 14:36:18 +01:00
Mariusz Nowak
a48117041c refactor(CLI): Integrate isHelpRequest into resolveInput util 2021-03-18 14:36:18 +01:00
Piotr Grzesik
86e0b6ddbb fix: Ensure to handle empty func definition with meaningful error 2021-03-17 13:12:16 +01:00
lewgordon
a941e87cbf
fix(CLI): Recognize --env option for sls invoke local as multiple
(PR #9131)
2021-03-16 19:27:48 +01:00
Mariusz Nowak
3e983f347a fix: Bring back "provider.sdk" property, to not break plugins 2021-03-16 17:54:00 +01:00
Mariusz Nowak
41df6fbee2 fix(AWS Credentials): Fix credentials resolution (right way) 2021-03-16 14:58:54 +01:00
Piotr Grzesik
5183620e9e fix(AWS EventBridge): Clarify CF functions support for eventBus 2021-03-16 14:57:07 +01:00
Mariusz Nowak
6f8b5b41eb fix(AWS Credentials): Fix credentials resolution 2021-03-16 13:58:57 +01:00
Piotr Grzesik
4cd629ac44 fix(AWS Lambda): Ensure correct schema for vpc definition 2021-03-16 13:58:44 +01:00
Piotr Grzesik
f6292b2d49 feat: Extend generatePayload 2021-03-16 09:50:19 +01:00
Mariusz Nowak
8b301dce9c refactor(CLI): Generalize handling of not supported commands 2021-03-16 09:34:33 +01:00
Mariusz Nowak
fe663ead50 refactor(CLI): Resolve commands and options by schema 2021-03-16 09:34:33 +01:00
Mariusz Nowak
aa9d8df2de fix(CLI): Fix options schema for "info" command 2021-03-16 09:34:33 +01:00
Mariusz Nowak
6ec463cbe7 fix(CLI): Improve handling of container commands
Allow to run them, and simply show help output if they're run
2021-03-16 09:34:33 +01:00
Mariusz Nowak
15b5a11ecd refactor: Refactor pluginManager.invoke to async/await 2021-03-16 09:34:33 +01:00
Mariusz Nowak
87b8d019c2 refactor: Refactor pluginManager.spawn to async/await 2021-03-16 09:34:33 +01:00
Mariusz Nowak
acf720cdef fix(CLI): Output "Plugin: " prefix only for external plugin comands 2021-03-16 09:34:33 +01:00
Mariusz Nowak
a9a48f675e fix(CLI): Fix internal commands merge logic
Originally some properties which should not have been overwritten (as `pluginName`) got overwritten and that resulted with errorneous help output
2021-03-16 09:34:33 +01:00
Mariusz Nowak
116fe85fbe refactor(CLI): Schema for @serverless/enterprise-plugin commands
This plugin is scheduled to be integrated into this repository, therefore maintaining the schema here is justified at this point
2021-03-16 09:34:33 +01:00
Mariusz Nowak
ed553a7526 refactor(CLI): Add Dashboard specific options to commands schema 2021-03-16 09:34:33 +01:00
Mariusz Nowak
140990d150 refactor(CLI): Improve error construct 2021-03-16 09:34:33 +01:00
Mariusz Nowak
21cc4cf8cb refactor(CLI): Expose "--help" in supported command options 2021-03-16 09:34:33 +01:00
Mariusz Nowak
b9afc144bf refactor(CLI): Recognize interactive setup command in commands schema 2021-03-16 09:34:33 +01:00
Mariusz Nowak
78d0e9ee45 refactor(CLI): At schema define "--config" option 2021-03-16 09:34:33 +01:00
Mariusz Nowak
e969bb356b fix(AWS Local Invocation): Do not document -c as --context alias
As it's an alias for `--config` option which is handled before command is processed
2021-03-16 09:34:33 +01:00
Mariusz Nowak
bfde21907b fix(CLI): Recognize --stage & --region on every AWS service command 2021-03-16 09:34:33 +01:00
Mariusz Nowak
a1804f6300 fix(CLI): Fix categorization of service dependent commands 2021-03-16 09:34:33 +01:00
Mariusz Nowak
14a2640bd9 refactor(CLI): Seclude schema of core commands 2021-03-16 09:34:33 +01:00
Mariusz Nowak
6752945eaa refactor(CLI): Fix "config tabcompletion uninstall" usage info 2021-03-16 09:34:33 +01:00
coyoteecd
e77a00dfff
fix(AWS IAM): Accept arn:${AWS::Partition} in function roles (#9103) 2021-03-15 16:49:03 +01:00
Mariusz Nowak
68de8bdeed fix(Variables): Retry JS function resolvers on unresolved dependencies 2021-03-15 13:27:20 +01:00
Tony Papousek
3597f4539d
fix(Templates): Fix runtime for azure-nodejs-typescript (#9106)
I receive the error `Error: Runtime nodejs12.x is not supported. Runtimes supported: nodejs10,nodejs12,python3.6,python3.7,python3.8,dotnet2.2,dotnet3.1` when trying to run the current version. Changing to just `nodejs12` helps.

Haven't done much testing on this (struggling with AZ auth and subscription lists), but this fix seems to suppress the error message and allow `sls offline` to run.

This value aligns with [the CONFIG.md doc](https://github.com/serverless/serverless-azure-functions/blob/master/docs/CONFIG.md), and should help prevent further occurrences of #6998 in this repo, as well as issue 393 in the [serverless-azure-functions repo](https://github.com/serverless/serverless-azure-functions).
2021-03-15 13:08:35 +01:00
AlinoeDoctari
5fb85d36c8
refactor: Seclude AWS request util from internals (#8850) 2021-03-12 15:27:49 +01:00
Mariusz Nowak
aa7b66a66c fix(AWS Deploy): Fix deploy function command error handling 2021-03-11 16:55:19 +01:00
Mariusz Nowak
a7d2cf0605 refactor(AWS Deploy): Minimize try/catch wrap 2021-03-11 16:55:19 +01:00
yumei
6537a5e48d
feat(Config Schema): Announce that crashing on error will become default
(PR #9066)
2021-03-10 12:11:06 +01:00
Piotr Grzesik
a79473d8b1 fix(CLI): Properly report SDK version when handling errors 2021-03-10 10:24:44 +01:00
terrybondy
ab8529cb24
fix(AWS Local Invocation): Support env vars with = in value (#9079)
* Fix prettier warnings.

* test(invoke): ensure everything after first "=" is included in environment variable

* test(invoke): unskip new test

Co-authored-by: Lew Gordon <lew.gordon@genesys.com>
2021-03-10 09:23:18 +01:00
Yahia Kerim
82bf35c1b9
fix(AWS IAM): Allow iam.role to use awsLambdaRole definition (#9094) 2021-03-09 17:21:04 +01:00
Piotr Grzesik
2b857c7eb4
feat(CLI): Report Platform Client instead of SDK version (#9092) 2021-03-09 12:30:50 +01:00
Mariusz Nowak
5e2406bea7 fix(Variables): Expose source resolution errors as non-user errors 2021-03-09 12:05:59 +01:00
Mariusz Nowak
524c43df75 refactor(Variables): Improve source fulfillment handling 2021-03-09 12:05:59 +01:00
Tristan Rigaut
dea7b5a3c0
fix(AWS Deploy): Warn when invalid IAM policy to fetch lambda (#9041) 2021-03-09 10:29:29 +01:00
Dave Lowther
5f5d2e580e
fix(Config Schema): Support CF functions for managed policies (#9089) 2021-03-09 09:38:42 +01:00
Sam Lyon
0f631f7bd1
feat(Config Schema): Accept accountId as policy principal 2021-03-08 21:13:08 +01:00
Dmitry Shirokov
42a1cdb6f1
feat(AWS IAM): Allow tags parameter on lambda execution role (#9039) 2021-03-08 11:04:32 +01:00
Vishnu Prassad
b2188a20d9
feat(AWS Stream): Add support for custom checkpoint (#9056) 2021-03-05 18:35:30 +01:00
Mariusz Nowak
b90538af08 refactor(Variables): Improve error message related to JS func resolver 2021-03-05 16:20:25 +01:00
Mariusz Nowak
774358271e refactor: Seclude tokenizeException util 2021-03-05 16:20:03 +01:00