add cert_expires_at

This commit is contained in:
2025-10-15 15:10:47 -03:00
parent 54c92b3996
commit ffa04d9b15
37 changed files with 371 additions and 230 deletions

View File

@@ -23,10 +23,10 @@ def lambda_handler(event: EventBridgeEvent, context: LambdaContext) -> bool:
new_image = event.detail['new_image']
order_id = new_image['id']
org_id = new_image['tenant_id']
# Post-migration: Uncomment the following line
# Post-migration (orders): Uncomment the following line
# org_id = new_image['org_id']
result = enrollment_layer.collection.query(
r = enrollment_layer.collection.query(
KeyPair(
# Post-migration: Uncomment the following line
# f'SLOT#ORG#{org_id}',
@@ -38,12 +38,12 @@ def lambda_handler(event: EventBridgeEvent, context: LambdaContext) -> bool:
logger.info(
'Slots found',
total_items=len(result['items']),
slots=result['items'],
total_items=len(r['items']),
slots=r['items'],
)
with enrollment_layer.batch_writer() as batch:
for pair in result['items']:
for pair in r['items']:
batch.delete_item(
Key={
'id': {'S': pair['id']},