Repository navigation
Expand file tree
/
Copy pathcreate_dynamodb_tables.py
More file actions
632 lines (582 loc) · 25.1 KB
/
Copy pathcreate_dynamodb_tables.py
File metadata and controls
632 lines (582 loc) · 25.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
#!/usr/bin/env python3
"""
Create all DynamoDB tables for Delphi system.
This script creates all necessary DynamoDB tables for both the Polis math system
and the EVōC (Efficient Visualization of Clusters) pipeline.
Usage:
python create_dynamodb_tables.py [options]
Options:
--endpoint-url ENDPOINT_URL DynamoDB endpoint URL
--region REGION AWS region (default: us-east-1)
--delete-existing Delete existing tables before creating new ones
--evoc-only Create only EVōC tables
--polismath-only Create only Polis math tables
--aws-profile PROFILE AWS profile to use (optional)
"""
import boto3
import os
import logging
import argparse
import time
# Configure logging
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
logger = logging.getLogger(__name__)
def create_polis_math_tables(dynamodb, delete_existing=False):
"""
Create all tables for the Polis math system.
Args:
dynamodb: boto3 DynamoDB resource
delete_existing: If True, delete existing tables before creating new ones
"""
# Get list of existing tables
existing_tables = [t.name for t in dynamodb.tables.all()]
# Define table schemas for Polis math
tables = {
# Main conversation metadata table
'Delphi_PCAConversationConfig': {
'KeySchema': [
{'AttributeName': 'zid', 'KeyType': 'HASH'}
],
'AttributeDefinitions': [
{'AttributeName': 'zid', 'AttributeType': 'S'}
],
'ProvisionedThroughput': {
'ReadCapacityUnits': 5,
'WriteCapacityUnits': 5
}
},
# PCA and cluster data
'Delphi_PCAResults': {
'KeySchema': [
{'AttributeName': 'zid', 'KeyType': 'HASH'},
{'AttributeName': 'math_tick', 'KeyType': 'RANGE'}
],
'AttributeDefinitions': [
{'AttributeName': 'zid', 'AttributeType': 'S'},
{'AttributeName': 'math_tick', 'AttributeType': 'N'},
],
'GlobalSecondaryIndexes': [
{
'IndexName': 'zid-index',
'KeySchema': [
{'AttributeName': 'zid', 'KeyType': 'HASH'}
],
'Projection': { 'ProjectionType': 'KEYS_ONLY' },
}
],
'BillingMode': 'PAY_PER_REQUEST',
},
# Group data
'Delphi_KMeansClusters': {
'KeySchema': [
{'AttributeName': 'zid_tick', 'KeyType': 'HASH'},
{'AttributeName': 'group_id', 'KeyType': 'RANGE'}
],
'AttributeDefinitions': [
{'AttributeName': 'zid_tick', 'AttributeType': 'S'},
{'AttributeName': 'group_id', 'AttributeType': 'N'},
{'AttributeName': 'zid', 'AttributeType': 'S'}
],
'BillingMode': 'PAY_PER_REQUEST',
'GlobalSecondaryIndexes': [
{
'IndexName': 'zid-index',
'KeySchema': [
{'AttributeName': 'zid', 'KeyType': 'HASH'}
],
'Projection': { 'ProjectionType': 'KEYS_ONLY' },
}
]
},
# Comment data with priorities
'Delphi_CommentRouting': {
'KeySchema': [
{'AttributeName': 'zid_tick', 'KeyType': 'HASH'},
{'AttributeName': 'comment_id', 'KeyType': 'RANGE'}
],
'AttributeDefinitions': [
{'AttributeName': 'zid_tick', 'AttributeType': 'S'},
{'AttributeName': 'comment_id', 'AttributeType': 'S'},
{'AttributeName': 'zid', 'AttributeType': 'S'}
],
'BillingMode': 'PAY_PER_REQUEST',
'GlobalSecondaryIndexes': [
{
'IndexName': 'zid-index',
'KeySchema': [
{'AttributeName': 'zid', 'KeyType': 'HASH'}
],
'Projection': { 'ProjectionType': 'ALL' },
}
]
},
# Representativeness data
'Delphi_RepresentativeComments': {
'KeySchema': [
{'AttributeName': 'zid_tick_gid', 'KeyType': 'HASH'},
{'AttributeName': 'comment_id', 'KeyType': 'RANGE'}
],
'AttributeDefinitions': [
{'AttributeName': 'zid_tick_gid', 'AttributeType': 'S'},
{'AttributeName': 'comment_id', 'AttributeType': 'S'},
{'AttributeName': 'zid', 'AttributeType': 'S'}
],
'BillingMode': 'PAY_PER_REQUEST',
'GlobalSecondaryIndexes': [
{
'IndexName': 'zid-index',
'KeySchema': [
{'AttributeName': 'zid', 'KeyType': 'HASH'}
],
'Projection': { 'ProjectionType': 'KEYS_ONLY' },
}
]
},
# Participant projection data
'Delphi_PCAParticipantProjections': {
'KeySchema': [
{'AttributeName': 'zid_tick', 'KeyType': 'HASH'},
{'AttributeName': 'participant_id', 'KeyType': 'RANGE'}
],
'AttributeDefinitions': [
{'AttributeName': 'zid_tick', 'AttributeType': 'S'},
{'AttributeName': 'participant_id', 'AttributeType': 'S'},
{'AttributeName': 'zid', 'AttributeType': 'S'}
],
'BillingMode': 'PAY_PER_REQUEST',
'GlobalSecondaryIndexes': [
{
'IndexName': 'zid-index',
'KeySchema': [
{'AttributeName': 'zid', 'KeyType': 'HASH'}
],
'Projection': { 'ProjectionType': 'KEYS_ONLY' },
}
]
}
}
# Handle table deletion if requested
if delete_existing:
_delete_tables(dynamodb, tables.keys(), existing_tables)
# Update list of existing tables
existing_tables = [t.name for t in dynamodb.tables.all()]
# Create tables
created_tables = _create_tables(dynamodb, tables, existing_tables)
return created_tables
def create_job_queue_table(dynamodb, delete_existing=False):
"""
Create the job queue table for the Delphi distributed processing system.
Args:
dynamodb: boto3 DynamoDB resource
delete_existing: If True, delete existing tables before creating new ones
"""
# Get list of existing tables
existing_tables = [t.name for t in dynamodb.tables.all()]
# Define table schema for job queue - Redesigned with job_id as partition key
tables = {
'Delphi_JobQueue': {
'KeySchema': [
{'AttributeName': 'job_id', 'KeyType': 'HASH'} # Partition key
],
'AttributeDefinitions': [
{'AttributeName': 'job_id', 'AttributeType': 'S'},
{'AttributeName': 'status', 'AttributeType': 'S'},
{'AttributeName': 'created_at', 'AttributeType': 'S'},
{'AttributeName': 'conversation_id', 'AttributeType': 'S'},
{'AttributeName': 'job_type', 'AttributeType': 'S'},
{'AttributeName': 'priority', 'AttributeType': 'N'},
{'AttributeName': 'worker_id', 'AttributeType': 'S'}
],
'BillingMode': 'PAY_PER_REQUEST',
'GlobalSecondaryIndexes': [
{
'IndexName': 'StatusCreatedIndex',
'KeySchema': [
{'AttributeName': 'status', 'KeyType': 'HASH'},
{'AttributeName': 'created_at', 'KeyType': 'RANGE'}
],
'Projection': {'ProjectionType': 'ALL'},
},
{
'IndexName': 'ConversationIndex',
'KeySchema': [
{'AttributeName': 'conversation_id', 'KeyType': 'HASH'},
{'AttributeName': 'created_at', 'KeyType': 'RANGE'}
],
'Projection': {'ProjectionType': 'ALL'},
},
{
'IndexName': 'JobTypeIndex',
'KeySchema': [
{'AttributeName': 'job_type', 'KeyType': 'HASH'},
{'AttributeName': 'priority', 'KeyType': 'RANGE'}
],
'Projection': {'ProjectionType': 'ALL'},
},
{
'IndexName': 'WorkerStatusIndex',
'KeySchema': [
{'AttributeName': 'worker_id', 'KeyType': 'HASH'},
{'AttributeName': 'status', 'KeyType': 'RANGE'}
],
'Projection': {'ProjectionType': 'ALL'},
}
],
},
# Server-side active-work guard (P-003 S3).
#
# One row per authorized submission scope (conversation + report +
# job type + job config). The server creates it in the SAME
# TransactWriteItems as the Delphi_JobQueue row, so a scope can own at
# most one active root job and an impatient resubmit cannot pay for a
# second provider run.
#
# It is a SEPARATE table on purpose: guard rows must never appear in
# Delphi_JobQueue, where they would look like missing-status anomalies
# to the queue observer. There is deliberately NO TTL: an automatic
# expiry could fire while paid provider work is still live. Rows are
# released by the server under an exact job_id + version condition once
# the root job is terminal and no checker descendant is outstanding.
'Delphi_JobActiveGuard': {
'KeySchema': [
{'AttributeName': 'guard_key', 'KeyType': 'HASH'}
],
'AttributeDefinitions': [
{'AttributeName': 'guard_key', 'AttributeType': 'S'}
],
'BillingMode': 'PAY_PER_REQUEST',
}
}
# Handle table deletion if requested
if delete_existing:
_delete_tables(dynamodb, tables.keys(), existing_tables)
# Update list of existing tables
existing_tables = [t.name for t in dynamodb.tables.all()]
# Create tables
created_tables = _create_tables(dynamodb, tables, existing_tables)
return created_tables
def create_evoc_tables(dynamodb, delete_existing=False):
"""
Create all tables for the EVōC (Efficient Visualization of Clusters) pipeline.
Args:
dynamodb: boto3 DynamoDB resource
delete_existing: If True, delete existing tables before creating new ones
"""
# Get list of existing tables
existing_tables = [t.name for t in dynamodb.tables.all()]
# Define table schemas for EVōC
tables = {
# Comment extremity table
'Delphi_CommentExtremity': {
'KeySchema': [
{'AttributeName': 'conversation_id', 'KeyType': 'HASH'},
{'AttributeName': 'comment_id', 'KeyType': 'RANGE'}
],
'AttributeDefinitions': [
{'AttributeName': 'conversation_id', 'AttributeType': 'S'},
{'AttributeName': 'comment_id', 'AttributeType': 'S'},
{'AttributeName': 'calculation_method', 'AttributeType': 'S'}
],
'GlobalSecondaryIndexes': [
{
'IndexName': 'ByMethod',
'KeySchema': [
{'AttributeName': 'calculation_method', 'KeyType': 'HASH'},
{'AttributeName': 'conversation_id', 'KeyType': 'RANGE'}
],
'Projection': {'ProjectionType': 'ALL'},
},
{
'IndexName': 'zid-index',
'KeySchema': [
{'AttributeName': 'conversation_id', 'KeyType': 'HASH'}
],
'Projection': {
'ProjectionType': 'ALL'
},
}
],
'BillingMode': 'PAY_PER_REQUEST'
},
'Delphi_NarrativeReports': {
'KeySchema': [
{'AttributeName': 'rid_section_model', 'KeyType': 'HASH'},
{'AttributeName': 'timestamp', 'KeyType': 'RANGE'}
],
'AttributeDefinitions': [
{'AttributeName': 'rid_section_model', 'AttributeType': 'S'},
{'AttributeName': 'timestamp', 'AttributeType': 'S'},
{'AttributeName': 'report_id', 'AttributeType': 'S'}
],
'BillingMode': 'PAY_PER_REQUEST',
'GlobalSecondaryIndexes': [
{
'IndexName': 'ReportIdTimestampIndex',
'KeySchema': [
{'AttributeName': 'report_id', 'KeyType': 'HASH'},
{'AttributeName': 'timestamp', 'KeyType': 'RANGE'}
],
'Projection': {
'ProjectionType': 'ALL'
}
}
]
},
# Core tables
'Delphi_UMAPConversationConfig': {
'KeySchema': [
{'AttributeName': 'conversation_id', 'KeyType': 'HASH'}
],
'AttributeDefinitions': [
{'AttributeName': 'conversation_id', 'AttributeType': 'S'}
],
'BillingMode': 'PAY_PER_REQUEST'
},
'Delphi_CommentEmbeddings': {
'KeySchema': [
{'AttributeName': 'conversation_id', 'KeyType': 'HASH'},
{'AttributeName': 'comment_id', 'KeyType': 'RANGE'}
],
'AttributeDefinitions': [
{'AttributeName': 'conversation_id', 'AttributeType': 'S'},
{'AttributeName': 'comment_id', 'AttributeType': 'N'}
],
'BillingMode': 'PAY_PER_REQUEST'
},
'Delphi_CommentHierarchicalClusterAssignments': {
'KeySchema': [
{'AttributeName': 'conversation_id', 'KeyType': 'HASH'},
{'AttributeName': 'comment_id', 'KeyType': 'RANGE'}
],
'AttributeDefinitions': [
{'AttributeName': 'conversation_id', 'AttributeType': 'S'},
{'AttributeName': 'comment_id', 'AttributeType': 'N'}
],
'BillingMode': 'PAY_PER_REQUEST'
},
'Delphi_CommentClustersStructureKeywords': {
'KeySchema': [
{'AttributeName': 'conversation_id', 'KeyType': 'HASH'},
{'AttributeName': 'cluster_key', 'KeyType': 'RANGE'}
],
'AttributeDefinitions': [
{'AttributeName': 'conversation_id', 'AttributeType': 'S'},
{'AttributeName': 'cluster_key', 'AttributeType': 'S'}
],
'BillingMode': 'PAY_PER_REQUEST'
},
'Delphi_UMAPGraph': {
'KeySchema': [
{'AttributeName': 'conversation_id', 'KeyType': 'HASH'},
{'AttributeName': 'edge_id', 'KeyType': 'RANGE'}
],
'AttributeDefinitions': [
{'AttributeName': 'conversation_id', 'AttributeType': 'S'},
{'AttributeName': 'edge_id', 'AttributeType': 'S'}
],
'BillingMode': 'PAY_PER_REQUEST'
},
# Extended tables
'Delphi_CommentClustersFeatures': {
'KeySchema': [
{'AttributeName': 'conversation_id', 'KeyType': 'HASH'},
{'AttributeName': 'cluster_key', 'KeyType': 'RANGE'}
],
'AttributeDefinitions': [
{'AttributeName': 'conversation_id', 'AttributeType': 'S'},
{'AttributeName': 'cluster_key', 'AttributeType': 'S'}
],
'BillingMode': 'PAY_PER_REQUEST'
},
'Delphi_CommentClustersLLMTopicNames': {
'KeySchema': [
{'AttributeName': 'conversation_id', 'KeyType': 'HASH'},
{'AttributeName': 'topic_key', 'KeyType': 'RANGE'}
],
'AttributeDefinitions': [
{'AttributeName': 'conversation_id', 'AttributeType': 'S'},
{'AttributeName': 'topic_key', 'AttributeType': 'S'}
],
'BillingMode': 'PAY_PER_REQUEST'
},
# Topic Agenda table for storing user selections
'Delphi_TopicAgendaSelections': {
'KeySchema': [
{'AttributeName': 'conversation_id', 'KeyType': 'HASH'},
{'AttributeName': 'participant_id', 'KeyType': 'RANGE'}
],
'AttributeDefinitions': [
{'AttributeName': 'conversation_id', 'AttributeType': 'S'},
{'AttributeName': 'participant_id', 'AttributeType': 'S'}
],
'BillingMode': 'PAY_PER_REQUEST'
},
# Collective Statement table for storing AI-generated group statements
'Delphi_CollectiveStatement': {
'KeySchema': [
{'AttributeName': 'zid_topic_jobid', 'KeyType': 'HASH'}
],
'AttributeDefinitions': [
{'AttributeName': 'zid_topic_jobid', 'AttributeType': 'S'},
{'AttributeName': 'zid', 'AttributeType': 'S'},
{'AttributeName': 'created_at', 'AttributeType': 'S'}
],
'GlobalSecondaryIndexes': [
{
'IndexName': 'zid-created_at-index',
'KeySchema': [
{'AttributeName': 'zid', 'KeyType': 'HASH'},
{'AttributeName': 'created_at', 'KeyType': 'RANGE'}
],
'Projection': {
'ProjectionType': 'ALL'
}
}
],
'BillingMode': 'PAY_PER_REQUEST'
}
}
# Handle table deletion if requested
if delete_existing:
_delete_tables(dynamodb, tables.keys(), existing_tables)
# Update list of existing tables
existing_tables = [t.name for t in dynamodb.tables.all()]
# Create tables
created_tables = _create_tables(dynamodb, tables, existing_tables)
return created_tables
def _delete_tables(dynamodb, table_names, existing_tables):
"""Helper function to delete tables."""
for table_name in table_names:
if table_name in existing_tables:
try:
table = dynamodb.Table(table_name)
table.delete()
logger.info(f"Deleted table {table_name}")
# Wait for table to be deleted
table.meta.client.get_waiter('table_not_exists').wait(TableName=table_name)
except Exception as e:
logger.error(f"Error deleting table {table_name}: {str(e)}")
def _create_tables(dynamodb, tables, existing_tables):
"""Helper function to create tables."""
created_tables = []
for table_name, table_schema in tables.items():
if table_name in existing_tables:
logger.info(f"Table {table_name} already exists, skipping creation")
continue
try:
# Ensure all GSI key attributes are in AttributeDefinitions
# This is good practice though boto3 might infer sometimes
if 'GlobalSecondaryIndexes' in table_schema:
for gsi in table_schema['GlobalSecondaryIndexes']:
for key_element in gsi['KeySchema']:
attr_name = key_element['AttributeName']
# Check if this attr_name is already defined
is_defined = False
for ad in table_schema['AttributeDefinitions']:
if ad['AttributeName'] == attr_name:
is_defined = True
break
if not is_defined:
# This part is a bit tricky as we need to know the type.
# For this specific GSI, we know 'report_id' is 'S'.
# A more robust solution would require type info alongside GSI def.
# For now, relying on explicit definition as done above.
logger.warning(f"Attribute {attr_name} for GSI in {table_name} was not in AttributeDefinitions. Ensure it's added if not inferred.")
table = dynamodb.create_table(
TableName=table_name,
**table_schema
)
logger.info(f"Created table {table_name}")
created_tables.append(table_name)
table.meta.client.get_waiter('table_exists').wait(TableName=table_name)
logger.info(f"Table {table_name} is active.")
except Exception as e:
logger.error(f"Error creating table {table_name}: {str(e)}")
return created_tables
def create_tables(endpoint_url=None, region_name='us-east-1',
delete_existing=False, evoc_only=False, polismath_only=False,
aws_profile=None):
if os.environ.get('DELPHI_RESULT_BACKEND') == 'postgres':
return []
# Use the environment variable if endpoint_url is not provided
if endpoint_url is None:
endpoint_url = os.environ.get('DYNAMODB_ENDPOINT')
logger.info(f"Creating tables with DynamoDB endpoint: {endpoint_url}")
"""
Create all necessary DynamoDB tables for both systems.
Args:
endpoint_url: URL of the DynamoDB endpoint (local or AWS)
region_name: AWS region name
delete_existing: If True, delete existing tables before creating new ones
evoc_only: If True, create only EVōC tables
polismath_only: If True, create only Polis math tables
aws_profile: AWS profile to use (optional)
"""
# Create DynamoDB session and resource
session_args = {'region_name': region_name}
if aws_profile:
session_args['profile_name'] = aws_profile
session = boto3.Session(**session_args)
dynamodb_args = {}
if endpoint_url:
dynamodb_args['endpoint_url'] = endpoint_url
dynamodb = session.resource('dynamodb', **dynamodb_args)
# Get list of existing tables before any operations
existing_tables = [t.name for t in dynamodb.tables.all()]
logger.info(f"Existing tables before operations: {existing_tables}")
created_tables = []
# Always create the job queue table
logger.info("Creating job queue table...")
job_queue_tables = create_job_queue_table(dynamodb, delete_existing)
created_tables.extend(job_queue_tables)
# Create tables based on flags
if not polismath_only:
logger.info("Creating EVōC tables...")
evoc_tables = create_evoc_tables(dynamodb, delete_existing)
created_tables.extend(evoc_tables)
if not evoc_only:
logger.info("Creating Polis math tables...")
polismath_tables = create_polis_math_tables(dynamodb, delete_existing)
created_tables.extend(polismath_tables)
# Check that requested tables were created
if created_tables:
logger.info(f"Created {len(created_tables)} new tables: {created_tables}")
else:
logger.info("No new tables were created")
# Final list of all tables
updated_tables = [t.name for t in dynamodb.tables.all()]
logger.info(f"All tables after creation: {updated_tables}")
return created_tables
def main():
if os.environ.get('DELPHI_RESULT_BACKEND') == 'postgres':
print('Postgres result schema is managed by migrations; no Dynamo bootstrap')
return
# Parse arguments
parser = argparse.ArgumentParser(description='Create DynamoDB tables for Delphi system')
parser.add_argument('--endpoint-url', type=str, default=None,
help='DynamoDB endpoint URL (default: use DYNAMODB_ENDPOINT env var)')
parser.add_argument('--region', type=str, default='us-east-1',
help='AWS region (default: us-east-1)')
parser.add_argument('--delete-existing', action='store_true',
help='Delete existing tables before creating new ones')
parser.add_argument('--evoc-only', action='store_true',
help='Create only EVōC tables')
parser.add_argument('--polismath-only', action='store_true',
help='Create only Polis math tables')
parser.add_argument('--aws-profile', type=str,
help='AWS profile to use (optional)')
args = parser.parse_args()
# Create tables
start_time = time.time()
create_tables(
endpoint_url=args.endpoint_url,
region_name=args.region,
delete_existing=args.delete_existing,
evoc_only=args.evoc_only,
polismath_only=args.polismath_only,
aws_profile=args.aws_profile
)
elapsed_time = time.time() - start_time
logger.info(f"Table creation completed in {elapsed_time:.2f} seconds")
if __name__ == "__main__":
main()