Hello World with S3 file Storage
Goal
We want to add persistence using an S3 Bucket to an Hello World Application already hosted on Poja that exposes the /hello?name=your-name endpoint, for which it :
Writes a Hello World message inside a .txt file
Uploads the file to an S3 bucket
Returns a presigned uri to download the file
How-to in 2 steps
Step 1: Enable file storage for the preprod environment
Select the preprod environment, click on the Edit button on the Poja Configuration section and then:
Enable the File Storage
Click on the Save button
Once it’s done, wait for the deployment to finish.


Step 2: Code your endpoint
To trigger a deployment, just commit and push the code to the preprod branch of the repository. Wait. And voilà!


PreviousHello world, but with a prod environment
NextHello world, but with asynchronous reply by email
Last updated
Was this helpful?
