Get today's newspaper at this URL
https://fomknjverbo2erq7grhcgubxyi0rsxhq.lambda-url.ap-south-1.on.aws/
- Clone the repository in your local
- Follow the given commands to create a deployment package, to be uploaded to Lambda. Refer this for reference.
cd NBT-Epaper
mkdir package
pip3 install -r requirements.txt --target ./package
cd package
zip -r ../deployment.zip package
cd ..
zip -r deployment.zip -j handler/
- Now create a Lambda function in AWS Lambda console, and upload this zip named
deployment.zip
- Make sure to install AWS SAM CLI
- Clone the repository in your local, then go inside the NBT-Epaper repository
- If you have
python3.12
installed in your system, runsam build; sam deploy
- If you don't have
python3.12
installed, you'll need Docker to create the deployment build inside a container. Install docker, and then change user to sudo viasudo -i
. Then finally runsam build --use-container; sam deploy