Skip to main content

Prerequisites

In order to run the following commands, you need to have a Ubuntu (or any other Debian-based) work environment up and running!

STEPS

    1. Upgrade pip and virtaulenv
      Run the following commands:sudo -H pip3 install --upgrade pip sudo -H pip3 install virtualenv
      • Then we need to create a virtaulenv

      python3 -m venv your_venv

      • Now we have to activate it.

      source your_venv/bin/activate

      • Install all the dependencies specified in the requirements.txt file

      pip install -r requirements.txt

    1. Install the Serverless Python Requirements Pluginsls plugin install -n serverless-python-requirements This will automagically add the plugin to the serverless.yml fileplugins: - serverless-python-requirements
      • To make the package of python dependencies, run

      sls package

      • Now deploy it to AWS

      sls deploy All okay? Boom!

Saimon hossain
Author: Saimon hossain
04/10/2023
Software Development Engineer

Contact Us Directly

Craftsmen Bangladesh
Plot # 316, Lane # 4, DOHS Baridhara, Dhaka 1206

Craftsmen Norway
Kong Oscars gate 66, 68, 5017 Bergen, Norway

Craftsmen France
6 Avenue Pierre Grenier, 92100 Boulogne-Billancourt, Paris, France

A Team You Can Trust

glassdoor (1)      goodfirms.co

 

 

2026 Copyright © Craftsmen