100 Commits

Author SHA1 Message Date
Mariusz Nowak
d608402428 test: Upgrade to @serverless/test v4.2 2020-07-10 17:35:23 +02:00
Mariusz Nowak
cad1f0af82 test: Upgrade @serverless/test to v4 2020-07-10 17:35:23 +02:00
Piotr Grzesik
75bf185785
refactor: Replace _.some usage with array.some (#7901) 2020-07-06 09:08:44 +02:00
Anh Dev
028e467202
refactor: Replace _.toString with native String (#7893) 2020-06-30 13:13:09 +02:00
Dai Van Nguyen
3b19a5a6b1
refactor: Remove _.isInteger (#7878) 2020-06-29 09:38:38 +02:00
Dai Van Nguyen
f2e19420e9
refactor: Replace _.parseInt with Number (#7877) 2020-06-25 15:22:35 +02:00
Chris Villanueva
77fbb5969b
refactor: Replace _.includes with val.includes (#7818) 2020-06-08 09:13:50 +02:00
TATSUNO Yasuhiro
5e0af21313
refactor: Replace _.forEach and _.each with array.forEach (#7748) 2020-05-28 10:45:25 +02:00
Chris Villanueva
d43241ea8b
refactor: Replace _.keys with Object.keys (#7784) 2020-05-28 09:25:20 +02:00
TATSUNO Yasuhiro
8bb5517456
refactor: Replace _.{startsWith,endsWith,includes} with native methods
(PR #7715)
2020-05-19 12:22:25 +02:00
Ahmad Mahmoud Mohammad
2a26493951
fix(AWS Lambda): Fix DependsOn handling in case of disabled logs (#7731) 2020-05-15 09:56:10 +02:00
Ahmad Mahmoud Mohammad
d8222fa0dc
fix(AWS IAM): Remove iamRoleLambdaExecution from DependsOn (#7722) 2020-05-14 15:48:06 +02:00
TATSUNO Yasuhiro
3fe2e98f15
refactor: Replace _.isArray with native Array.isArray (#7703) 2020-05-11 10:24:41 +02:00
Mariusz Nowak
7a3a45f0b3 fix(AWS Lambda): Respect external IAM role at destinations
Fixes #7448
2020-03-20 11:15:21 +13:00
Mariusz Nowak
903ec8ce1c test: Move scope of final cleanup 2020-03-20 11:15:21 +13:00
Mariusz Nowak
8ed6a6e7d7 feat(AWS Lambda): Support destinations configuration 2020-03-07 11:00:35 +13:00
Mariusz Nowak
e8d4606a6a refactor(AWS Lambda): Reconfigure condition 2020-03-07 11:00:35 +13:00
Mariusz Nowak
3a6865db7f refactor(AWS Lambda): Generalize target alias resolution 2020-02-05 12:31:43 +01:00
Artur Grzybowski
9591d5a232 feat: Enhance configuration options of cloudFront event (#7170)
Fixes #7151 
Addresses partially #6843 and #6785
2020-01-09 14:07:33 +01:00
Mariusz Nowak
4821ad21a5 fix(AWS Lambda): Remove AWS issue workaround
Issue was fixed on AWS side, and by next week it should be fixed for
gov-cloud regions.
Still in a meantime other AWS issue emerged,
An "A conflicting deployment is in progress." error,
Which happens only when workaround in question is involved

Fixes #7137
2020-01-03 14:17:03 +01:00
Mariusz Nowak
38f6ac125e
fix(AWS APIGW): Ensure to point provisioned version
Addresses #7059
2019-12-23 13:58:33 +01:00
Mariusz Nowak
3210a94ef9
fix(AWS Lambda): Workaround AWS issue related to alias redeployments
Addresses #7059
2019-12-23 13:58:32 +01:00
Mariusz Nowak
eaf9b6117f
fix(AWS Lambda): Fix provisioned concurrency configuration
- So it works with multiple lambda versions
- “internal error” is avoided on change of provisioned
  config configuration

Addresses #7059
2019-12-23 13:58:32 +01:00
Mariusz Nowak
3e2f59e27c
refactor(AWS Lambda): Resolve object once 2019-12-23 13:58:32 +01:00
Mariusz Nowak
cf5497198b
refactor(AWS Lambda): Improve var name 2019-12-23 13:58:32 +01:00
Mariusz Nowak
95a397d731
refactor(AWS Lambda): Improve variables naming 2019-12-23 13:58:31 +01:00
Mariusz Nowak
271499777d
refactor(AWS Lambda): Rely on more reliable Object.assign
_.merge is deep merge, and may introduce unexpected outcome
2019-12-23 13:58:31 +01:00
Tuomas Peippo
f9b6507825 feat: Support CF instructions in awsKmsKeyArn setting (#7083) 2019-12-12 15:06:53 +01:00
Mariusz Nowak
06cf6ab257
refactor: Gurantee to resolve with promise 2019-12-09 11:59:22 +01:00
Mariusz Nowak
3195e5e98f
fix: Fix provisioned concurrency support
So it doesn't leave outdated versions with configured concurrency

Fixes #7059
2019-12-09 11:59:22 +01:00
Mariusz Nowak
006af9e8f5
refactor: Cleanup conditional 2019-12-09 11:59:21 +01:00
Mariusz Nowak
fb86af5880
refactor: Abort unnecessary work 2019-12-09 11:59:21 +01:00
Mariusz Nowak
1cf29ff561
Fix handling of provisionedConcurrency handling 2019-12-04 11:16:17 +01:00
Mariusz Nowak
937cd92a43
Refactor setup of function versioning 2019-12-04 11:16:17 +01:00
Mariusz Nowak
20a9bf44d2
Update CloudFormation configuration 2019-11-25 18:04:41 +01:00
Mariusz Nowak
4a0228aa47
Support provisioned concurrency setting 2019-11-22 12:42:41 +01:00
Peter Indiola
4adc5cc197 Fix spelling and typos in docs, code variables and code comments 2019-11-20 23:28:56 +08:00
Mariusz Nowak
f9a79b3742
Update up to recent changes 2019-11-20 12:10:15 +01:00
Mariusz Nowak
cb5c4a57b3
Prettify 2019-11-20 12:04:45 +01:00
Mariusz Nowak
d66e457572
Ensure to update tests with a new runtime 2019-11-20 11:11:20 +01:00
Mariusz Nowak
71699d9a47
Default to nodejs12.x runtime 2019-11-20 09:48:32 +01:00
Mark Tse
e62ddadc9d chore - stop using deprecated 'new Buffer()' method. 2019-10-13 15:15:26 -04:00
Rich Trott
7f010a11ef Fix regular expression escaping in aws plugin.
Also, remove leading `.*` in the regular expression. It will still match
if there are any characters preceding the matching text.

Fixes: https://github.com/serverless/serverless/issues/6688
2019-09-13 22:46:03 -07:00
theburningmonk
242cd35374 test: removed duplicated test case 2019-09-07 02:27:12 +02:00
theburningmonk
43f383583a style: fixed prettier errors 2019-09-06 01:38:24 +02:00
theburningmonk
b2cd8b7c0a feat: add support for condition and dependsOn 2019-09-05 22:43:17 +02:00
Philipp Muens
ada1055009 Address PR review comments 2019-09-05 12:51:06 +02:00
Eetu Tuomala
d879730866 use lodash to check empty values, change version function order 2019-09-05 12:51:06 +02:00
Eetu Tuomala
d85ed060c9 add cloudfront logical ids to naming 2019-09-05 12:51:05 +02:00
Eetu Tuomala
e3b3cccb7f force function versioning, add ability to version functions individually 2019-09-05 12:51:05 +02:00