update events
This commit is contained in:
@@ -35,6 +35,8 @@ def lambda_handler(event: EventBridgeEvent, context: LambdaContext) -> bool:
|
||||
with dyn.transact_writer() as transact:
|
||||
transact.update(
|
||||
key=KeyPair(new_image['id'], 'konviva'),
|
||||
# Post-migration: uncomment the following line
|
||||
# key=KeyPair(new_image['id'], 'KONVIVA'),
|
||||
update_expr='SET enrollment_id = :enrollment_id',
|
||||
cond_expr='attribute_exists(sk)',
|
||||
expr_attr_values={
|
||||
@@ -45,6 +47,8 @@ def lambda_handler(event: EventBridgeEvent, context: LambdaContext) -> bool:
|
||||
transact.put(
|
||||
item={
|
||||
'id': 'konviva',
|
||||
# Post-migration: uncomment the following line
|
||||
# 'id': 'KONVIVA',
|
||||
'sk': str(enrollment_id),
|
||||
'enrollment_id': new_image['id'],
|
||||
'created_at': now_,
|
||||
|
||||
Reference in New Issue
Block a user