Skip to content
This repository was archived by the owner on Dec 6, 2024. It is now read-only.

Commit 1ad3c89

Browse files
committed
fix: handle custom resource deletion (#1036)
1 parent 79c12cd commit 1ad3c89

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.viperlightrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"all": true,
3+
"failOn": "medium"
4+
}

cdk/lib/envconfig/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ export const handler = async (event: any): Promise<void> => {
1919
return await uploadConfig();
2020
}
2121

22-
return await Promise.reject(new Error("Invalid config type"));
22+
// On Delete do nothing
23+
console.log("On Delete do nothing");
24+
return await Promise.resolve();
2325
};
2426

2527
const uploadConfig = async () => {

0 commit comments

Comments
 (0)