add postgres
This commit is contained in:
@@ -19,16 +19,11 @@ enrollment_layer = DynamoDBPersistenceLayer(ENROLLMENT_TABLE, dynamodb_client)
|
||||
@logger.inject_lambda_context
|
||||
def lambda_handler(event: EventBridgeEvent, context: LambdaContext) -> bool:
|
||||
new_image = event.detail['new_image']
|
||||
subscription = enrollment_layer.collection.get_items(
|
||||
data = enrollment_layer.collection.get_items(
|
||||
TransactKey(new_image['id'])
|
||||
+ SortKey('METADATA#SUBSCRIPTION_COVERED')
|
||||
+ SortKey('author', rename_key='CREATED_BY')
|
||||
+ SortKey('tenant', rename_key='ORG')
|
||||
+ SortKey('CREATED_BY')
|
||||
+ SortKey('ORG')
|
||||
+ SortKey('METADATA#SUBSCRIPTION_COVERED', rename_key='subscription')
|
||||
+ SortKey('author', rename_key='created_by')
|
||||
+ SortKey('tenant', rename_key='org')
|
||||
)
|
||||
|
||||
with enrollment_layer.transact_writer() as transact_writer:
|
||||
...
|
||||
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user