125 Commits

Author SHA1 Message Date
Mariusz Nowak
c0ea4c1461 feat(AWS Lambda): Basic container image support 2020-12-04 13:53:49 +01:00
Mariusz Nowak
0009b963cd refactor(AWS Lambda): Refactor to async/await 2020-12-04 13:53:49 +01:00
Mariusz Nowak
9380c702c9 refactor(Packaging): Convert to async/await 2020-12-04 13:53:49 +01:00
Mariusz Nowak
9877bc5568 refactor(AWS Lambda): Do not use capitalized var names 2020-12-04 13:53:49 +01:00
Mariusz Nowak
3808471972 test: Move unit tests to "test/unit" folder 2020-11-30 16:53:52 +01:00
Mariusz Nowak
aa42b3bb89
test(AWS Lambda): Improve new tests spec 2020-11-18 16:43:08 +01:00
Mariusz Nowak
1324a6c761 test(AWS Lambda): Prepare background for refactor 2020-11-18 16:06:10 +01:00
Mariusz Nowak
f60fb55a0b fix: Ensure to inspect configuraiton after it's fully resolved 2020-11-06 14:51:53 +01:00
Mariusz Nowak
1b26075fb5 fix: Ensure to log deprecation at initialization stage 2020-11-03 14:10:38 +01:00
Mariusz Nowak
5851bcadcf
fix(AWS Lambda): Revert inclusion of version hashi in env var (#8332)
This reverts commit 73c34b9f2bbe3b7c063a257a5b032b7460f263c0.

We need to revert it, as it'll break lambdas intended to back cloudFront distributions
2020-10-02 12:06:27 +02:00
Brent Jackson
73c34b9f2b
fix(AWS Lambda): Ensure version hash is in all cases effective (#8310)
In some instances the version hash may change due to a change involving
CloudFormation instrisic functions, but upon resolving the functions, the
resulting lambda configuration is identical to what is currently
deployed. This causes the Lambda::Version to fail to publish since AWS
sees the lambdas as identical.

This commit embeds an environment variable onto each lambda function with
the value of the version config hash, ensuring that anytime the config
hash changes, the resulting lambda configuration will be changed,
allowing a Lambda::Version to be published.
2020-10-01 18:20:08 +02:00
Frédéric Barthelet
a55009e221
feat: Deprecate awsKmsKeyArn in favor of kmsKeyArn (#8277) 2020-09-24 12:40:04 +02:00
Patrick Withams
e43c889647
fix(AWS Lambda): Ensure version hash is affected by layer changes
(PR #8066)
2020-09-24 12:19:43 +02:00
Piotr Grzesik
76e02cc09c
refactor: Replace _.forEach with Object.entries().forEach (#8280) 2020-09-24 10:31:32 +02:00
Oz Weiss
1fceb898d0
fix(AWS Lambda): Recognize function-wide settings for version hashing
(PR #8212)
2020-09-22 09:29:54 +02:00
Frédéric Barthelet
feece9a2ec
feat(Config Schema): Schema for functions[] properties (#8222) 2020-09-21 16:50:52 +02:00
Piotr Grzesik
e131f2661d refactor(AWS Lambda): Remove support for async config on destination
(PR #8138)

BREAKING CHANGE
Support for `maximumEventAge` and `maximumRetryAttemps` as set on `functions[].destinations` was removed.
Those properties should be defined directly on `functions[]`
2020-09-10 13:26:17 +02:00
Mariusz Nowak
05921b61ee test: Upgrade to use new fixtures engine 2020-09-09 11:17:21 +02:00
Mariusz Nowak
8c3c7c4e3a chore: Rename "tests" folder to "test"
Also upgrade @serverless/eslint-config to v2
2020-08-28 16:22:09 +02:00
Piotr Grzesik
149f64ad1c
feat(AWS Lambda): Support EFS attachment (#8042) 2020-08-25 17:48:19 +02:00
Mariusz Nowak
bab0d56bd9 fix(AWS Lambda): Ensure to respect maximumRetryAttempts set to 0 2020-08-05 16:36:56 +02:00
Mariusz Nowak
31f52f9f9e test(AWS Lambda): Improve async config tests 2020-08-05 16:36:56 +02:00
Mariusz Nowak
9897120a8a fix: Set versionFunctions to true only in AWS provider case 2020-07-31 15:21:14 +02:00
Mariusz Nowak
ca79cb6d69 refactor: Simplify condition notation 2020-07-31 15:21:14 +02:00
Piotr Grzesik
8573ec1e50
feat(AWS Lambda): Support maximumEventAge and maximumRetryAttempts
Support those setting on its own (directly on function configuration) and not just in context of destinations

(PR #7987)
2020-07-29 11:50:11 +02:00
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