add certs

This commit is contained in:
2025-09-01 16:34:02 -03:00
parent 5bd846338b
commit cbf8cada3d
16 changed files with 655 additions and 1108 deletions

View File

@@ -14,7 +14,7 @@ from layercake.dynamodb import DynamoDBPersistenceLayer, KeyPair
from boto3clients import dynamodb_client, s3_client
from config import BUCKET_NAME, ORDER_TABLE
WEASYPRINT_API = 'https://weasyprint.saladeaula.digital'
PAPERFORGE_API = 'https://weasyprint.saladeaula.digital'
TEMPLATE_S3_URI = 's3://saladeaula.digital/billing/template.html'
logger = Logger(__name__)
@@ -50,8 +50,8 @@ def lambda_handler(event: EventBridgeEvent, context: LambdaContext) -> bool:
},
cls=Encoder,
)
# Send template URI and data to WeasyPrint API to generate a PDF
r = requests.post(WEASYPRINT_API, data=json_data)
# Send template URI and data to Paperforge API to generate a PDF
r = requests.post(PAPERFORGE_API, data=json_data)
r.raise_for_status()
object_key = f'billing/{org_id}/{start_date}_{end_date}.pdf'