From be9f0c1f7c6c069d8bb8ce9ddb46562b6faf6144 Mon Sep 17 00:00:00 2001 From: Joel Balcaen Date: Fri, 3 May 2024 10:19:13 -0300 Subject: [PATCH] use s3 uri --- lambdas/rich_pdf_ingestion/src/index.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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: