Skip to content

Commit 1519023

Browse files
authored
[chore] disable idempotent updates for lambda (#97)
1 parent f2265a4 commit 1519023

File tree

8 files changed

+18
-8
lines changed

8 files changed

+18
-8
lines changed

dist/aws-lambda/MANIFEST

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
REPO aws-lambda
2-
VERSION_HASH 1c644bdfede8
3-
LOAD lambda-function.yaml base.yaml common.yaml
4-
RESOURCES common.js lambda-function-sync.js base.js
2+
VERSION_HASH 88ac9e832adb
3+
LOAD base.yaml common.yaml lambda-function.yaml
4+
RESOURCES base.js common.js lambda-function-sync.js

dist/aws-lambda/base.js

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/aws-lambda/base.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ namespace: aws-lambda
33
base:
44
defines: module
55
metadata:
6-
version-hash: 1c644bdfede8
6+
version-hash: 88ac9e832adb
77
source: <<< base.js

dist/aws-lambda/common.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ namespace: aws-lambda
33
common:
44
defines: module
55
metadata:
6-
version-hash: 1c644bdfede8
6+
version-hash: 88ac9e832adb
77
source: <<< common.js

dist/aws-lambda/lambda-function.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ lambda-function:
33
defines: entity
44
metadata:
55
name: LambdaFunction
6-
version-hash: 1c644bdfede8
6+
version-hash: 88ac9e832adb
77
schema:
88
region:
99
type: string

dist/monkec/MANIFEST

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
REPO monkec
22
VERSION_HASH 1e31de784c59
33
VERSION 0.1.0
4-
LOAD http-client.yaml base.yaml
5-
RESOURCES base.js http-client.js
4+
LOAD base.yaml http-client.yaml
5+
RESOURCES http-client.js base.js

src/aws-lambda/base.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,11 @@ export abstract class AWSLambdaEntity<
123123
D extends AWSLambdaDefinition,
124124
S extends AWSLambdaState
125125
> extends MonkEntity<D, S> {
126+
127+
// disable skipping updates, as Lambda updates are not fully idempotent
128+
protected override isIdempotentUpdateEnabled(): boolean {
129+
return false;
130+
}
126131

127132
protected region!: string;
128133

src/lib/modules/base.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ export abstract class MonkEntity<D extends object, S extends object> {
4141
delete(): void;
4242
checkReadiness(): boolean;
4343
protected handleUnknownAction(action: string, args?: Args): void;
44+
protected isIdempotentUpdateEnabled(): boolean;
4445
}
4546

4647
// Decorator to register a method as an action

0 commit comments

Comments
 (0)