Mariusz Nowak
3808471972
test: Move unit tests to "test/unit" folder
2020-11-30 16:53:52 +01:00
Graham McGregor
06f6c6d28e
refactor: Refactor some functions to native promises ( #8533 )
2020-11-25 13:40:48 +01:00
Filip Pýrek
4ce9037f8c
fix: Support log retention at custom resource lambda log groups ( #8456 )
2020-11-02 10:17:02 +01:00
Pratik Prajapati
a3ebc01f2b
feat(AWS Deploy): Retry retryable SDK errors in custom resources ( #8338 )
2020-10-07 13:22:16 +02:00
Mariusz Nowak
0597cfb7b3
chore: Upgrade ESLint configuration to support ES2019 syntax
2020-09-10 13:26:17 +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
Sedat Can Yalçın
258c692c47
perf(Packaging): Remove aws-sdk installation step ( #8110 )
2020-08-21 15:03:12 +02:00
Mariusz Nowak
c872c143ba
refactor: Seclude generic version artifacts handlers
2020-07-27 11:42:02 +02:00
Mariusz Nowak
2ebb46a2f4
style: Fix lint issues
2020-05-15 16:40:19 +02:00
Kenan Christian Dimas
c106d53638
refactor: Upgrade 'fs-extra' to v8 ( #7719 )
2020-05-13 16:16:17 +02:00
Mariusz Nowak
6b3a78950c
fix(AWS Deploy): Fix generation of custom resource lambda zip
...
So far in case of packaging process being stopped in a middle, we were left with broken zip that was accepted for further deployment.
FIx is to generate zip to temporary directory and move it once generation of archive is finalized
2020-05-07 14:59:28 +02:00
Mariusz Nowak
0898664c68
fix(AWS Cognito): Fix pool update handling
2020-03-05 10:26:08 +13:00
Callum Smits
7d67f33b08
fix: Add source account to lambda permissions for s3 events ( #7417 )
2020-03-03 15:28:21 +13:00
Frédéric Barthelet
103fdacc29
fix: Ensure AWS EventBrigde target ids fit 64 chars limit ( #7359 )
2020-02-21 12:41:30 +13:00
Mariusz Nowak
4a947b215c
fix(AWS Lambda): Fix CloudWatch logs creation access
...
Fixes #6241
Closes #6692
2019-12-23 13:58:33 +01:00
Mariusz Nowak
84b1d1eb11
fix: Fix custom resource lambda artifact generation
...
When multiple custom resources where generated,
then multiple times we tried to copy generated zip file
into service folder.
On same occasions it crashed with EPERM or ENOENT errors
2019-12-23 13:57:51 +01:00
Mariusz Nowak
5e448e7d1d
refactor: Ensure to return promise from async function
2019-12-23 13:57:51 +01:00
Mariusz Nowak
10d0078d19
refactor: Move cachedFilePath resolution into memoized function
...
In tests run, each file starts with different homedir
2019-12-20 10:34:07 +01:00
Mariusz Nowak
ddf3bf40a3
refactor: Centralize npm command resolution
...
It's to provide a room to support alternative npm locations
2019-12-18 09:36:52 +01:00
Mariusz Nowak
14806d79b0
test: Improve error exposure
2019-12-12 14:27:40 +01:00
Mariusz Nowak
6ace028a33
Fix zip file handling
2019-12-02 16:48:58 +01:00
Mariusz Nowak
952a6c6223
Cleanup
2019-12-02 16:29:24 +01:00
Mariusz Nowak
a0a565b9e5
Optimize custom resources generation
2019-12-02 15:12:42 +01:00
jmb12686
67d84780bd
remove getPartition function. Pass partition in thru handler
2019-11-25 07:44:15 -05:00
jmb12686
80b47d0b8c
run linter
2019-11-22 15:01:14 -05:00
jmb12686
c2e3eb67d7
prettify fix
2019-11-22 14:52:35 -05:00
jmb12686
bcea1de7dc
Add flexible parsing of arns with AWS Partitions, including govcloud and china regions. Add utility function to obtain partition from region
2019-11-22 14:40:32 -05:00
jmb12686
3049b79f40
run prettier on updated files
2019-11-21 16:57:51 -05:00
jmb12686
6abf0cf77e
fix typo and linting fixes
2019-11-21 16:16:52 -05:00
jmb12686
c61dc47f9d
Fix handling of arns in GovCloud east and west regions
2019-11-21 16:15:02 -05:00
Mariusz Nowak
d66e457572
Ensure to update tests with a new runtime
2019-11-20 11:11:20 +01:00
Mariusz Nowak
8148cfc6cc
Rely on new runtime in custom resource lambdas
2019-11-20 09:50:34 +01:00
Philipp Muens
3d24e8af38
Pass role arn into custom CloudFormation resource
2019-10-24 13:30:34 +02:00
Mariusz Nowak
b749213029
Fix custom resource tests
2019-10-23 11:49:58 +02:00
Mariusz Nowak
ce6d155948
Fix DependsOn handling
2019-10-23 11:10:02 +02:00
Mariusz Nowak
88f60a48ab
Honor cfnRole in custom resources handling
2019-10-22 17:13:17 +02:00
Mariusz Nowak
ae1696084b
Reorganize custom role setup
2019-10-22 16:59:28 +02:00
Jack Danger
28d38c5ae2
fixing typos in variable names
...
nane -> name
resouce -> resource
2019-09-24 19:21:00 -07:00
Mariusz Nowak
90b773a350
Fix install command
...
--prefix is not documented, and works differently on Windows
2019-09-24 16:24:20 +02:00
Mariusz Nowak
5b898c73d9
Support CloudWatch logs for custom resource lambdas
2019-08-29 13:11:49 +02:00
Mariusz Nowak
e2220c21fc
Rely on Object.assign
2019-08-29 13:00:12 +02:00
Mariusz Nowak
aa0514a951
Refactor logic
2019-08-29 12:46:51 +02:00
Mariusz Nowak
a474fadf01
Introduce functionName variable
2019-08-29 11:52:11 +02:00
Mariusz Nowak
279fefbe94
Rename var
2019-08-29 11:50:19 +02:00
Mariusz Nowak
a43a263014
Refactor custom reosources to take provider as input
2019-08-28 11:29:45 +02:00
Mariusz Nowak
43344994b7
Truncate long custom resource function names
2019-08-27 15:25:16 +02:00
Mariusz Nowak
e628942b37
Make service name configurable
2019-08-27 15:05:04 +02:00
Mariusz Nowak
60f36e4bbe
Clear invalid options
2019-08-14 09:36:35 +02:00
Mariusz Nowak
c3dcb0646a
Ensure extensive timeout on custom resource lambdas
2019-08-13 17:50:29 +02:00
Mariusz Nowak
64ce692951
Setup APIGW CloudWatch role via custom resource
2019-08-13 17:30:28 +02:00