Skip to content

Commit

Permalink
use s3 uri
Browse files Browse the repository at this point in the history
  • Loading branch information
joelbalcaen committed May 3, 2024
1 parent 147f085 commit be9f0c1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lambdas/rich_pdf_ingestion/src/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit be9f0c1

Please sign in to comment.