7699 Commits

Author SHA1 Message Date
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
Mariusz Nowak
c9087ec4e6 refactor(CLI): Rely on cli/is-help-request util 2021-03-05 16:17:42 +01:00
Piotr Grzesik
55abaaf6d5 refactor: Revert bluebird from lib/plugins/aws
This reverts commit b11171c70c8f5597e2644f7ea8ec82a17a9eee29.
2021-03-04 11:06:44 +01:00
Piotr Grzesik
217b9751ea refactor: Revert bluebird from lib/plugins/interactiveCli
This reverts commit 7c0ceb5c4a1171666e381ef9a00c6f133569732b.
2021-03-04 11:06:44 +01:00
Piotr Grzesik
399d91b7e4 refactor: Revert bluebird from lib/plugins/package
This reverts commit 0fb0f43919bd3bd4a9c57b9f33bf96a822ce027c.
2021-03-04 11:06:44 +01:00
Piotr Grzesik
ae2c92ced6 refactor: Revert bluebird from lib/plugins/create
This reverts commit 258543ab6e1874ba41be3563346cd7b50993ac58.
2021-03-04 11:06:44 +01:00
Piotr Grzesik
2a9f79f19e refactor: Revert bluebird from lib/plugins/plugin
This reverts commit 9e7960297227b39f05c2619a80e3cac7cb7be1a5.
2021-03-04 11:06:44 +01:00
Piotr Grzesik
7a012d83b9 refactor: Revert remove bluebird from lib/plugins
This reverts commit 8fead7f39e3a5649e87a4ceb6e0c0a28e7f61ea5.
2021-03-04 11:06:44 +01:00
Piotr Grzesik
f62fc2ee9c refactor: Revert removal of bluebird from lib/utils
This reverts commit 820cc1f581bfd502e5452f5c9935301ec86f9d14.
2021-03-04 11:06:44 +01:00
Piotr Grzesik
c41bd64bb2 refactor: Revert removal of bluebird from lib/classes
This reverts commit 1a694ae4aab0a347b018380110b9a436f6c43c1e.
2021-03-04 11:06:44 +01:00
Mariusz Nowak
d6c7d97dc6 fix(Variables): Ensure to apply intialization patch unconditionally 2021-03-03 15:23:36 +01:00
Mariusz Nowak
25dd575a4d fix(Variables): Fix variables setup for external plugins usage 2021-03-03 13:09:18 +01:00
Mariusz Nowak
10e1dda23b refactor: Ensure to pass "isConfigurationResolved" to local instance 2021-03-03 10:13:32 +01:00
Mariusz Nowak
68f326e79f fix(Variables): Ensure to not share property cache across resolutions 2021-03-03 10:13:32 +01:00
Juanjo Diaz
b11171c70c
refactor: Remove bluebird from lib/plugins/aws (#9054) 2021-03-03 09:29:51 +01:00
Mariusz Nowak
21ac1beb22 fix(Variables): Recognize hyphens in types
It's to recognize notation as "cf.us-east-1:.."
2021-03-02 22:47:32 +01:00
Mariusz Nowak
df627394b3 fix(Variables): Ensure proper error handling for resolved value parsing 2021-03-02 22:47:32 +01:00
Mariusz Nowak
480b61270c fix(Variables): Ensure to resolve variables in resolved strings 2021-03-02 21:24:52 +01:00
Mariusz Nowak
6c4beb64ee fix(AWS Credentials): Fix unrecognized profile error reporting 2021-03-02 16:59:06 +01:00
Mariusz Nowak
452fdc2445 refactor(Variables): Make resolution error handler reusable 2021-03-02 13:54:16 +01:00
Mariusz Nowak
7aac480fbb refactor(Variables): Do not run old resolver when no vars to resolve 2021-03-02 13:54:16 +01:00
Mariusz Nowak
8592bdb1b2 refactor: Improve deprecation message 2021-03-01 22:48:48 +01:00
Mariusz Nowak
d2e6a8adef fix(Variables): Resolve plain text for unrecognized extensions 2021-03-01 17:49:07 +01:00
Mariusz Nowak
131516a6d0 fix(Variables): Error on property access attempt on primitive result 2021-03-01 17:49:07 +01:00
Mariusz Nowak
4184c1b1fe refactor(Variables): Improve error messages 2021-03-01 17:49:07 +01:00
Juanjo Diaz
7c0ceb5c4a
refactor: Remove bluebird from lib/plugins/interactiveCli (#9029) 2021-03-01 11:54:18 +01:00
Juanjo Diaz
0fb0f43919
refactor: Remove bluebird from lib/plugins/package (#9028) 2021-03-01 11:44:49 +01:00
ifitzsimmons
6e486b3eb1
refactor: Use async in lib/plugins/aws/package (#8870)
Covered the following paths:
* Files put directly into `lib/plugins/aws/package/compile`
* Files put directly into `lib/plugins/aws/package`
* `lib/plugins/aws/package/lib`

Made changes to tests where necessary.
2021-03-01 11:15:34 +01:00