Quarto in AWS Lambda? #1579
-
Hello! I am currently trying to use quarto (v1.0.37) in AWS Lambda to generate a daily PDF report that is triggered when a file gets uploaded to AWS S3. In my notebook, I have the following: I set the following environment variables: The problem I'm running into is that it is trying to make this directory '.cache/quarto' in the current directory, which is not writeable.
Based on some digging, I believe it is coming from src/command/render/latexmk/pdf.ts lines 38-48 in which it tries to creates a new directory using Deno.mkdirSync(workingDir) based on the current working directory. Is there a way to change this (maybe via an environment variable?) to make the directory in /tmp? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
If you copy the qmd file in tmp and render from there, then get the output file back to where you want, I believe it solves your issue. Also, there is |
Beta Was this translation helpful? Give feedback.
If you copy the qmd file in tmp and render from there, then get the output file back to where you want, I believe it solves your issue.
Also, there is
QUARTO_PROJECT_DIR
to define the working directory, see https://quarto.org/docs/projects/code-execution.html#working-dir