diff --git a/lambdas/rich_pdf_ingestion/src/index.py b/lambdas/rich_pdf_ingestion/src/index.py index ba6df1d..739c536 100644 --- a/lambdas/rich_pdf_ingestion/src/index.py +++ b/lambdas/rich_pdf_ingestion/src/index.py @@ -39,13 +39,13 @@ def lambda_handler(event, context): bucket=bucket, key=new_key ) - extracted_files_s3_arns = [] - extracted_files_s3_arns.append(f"arn:aws:s3:::{bucket}/{new_key}") + extracted_files_s3_uris = [] + extracted_files_s3_uris.append(f"s3://{bucket}/{new_key}") return { 'statusCode': 200, 'body': 'PDF text content extracted and saved', - 'attachment_arns': extracted_files_s3_arns + 'attachment_uris': extracted_files_s3_uris } except Exception as e: