- Init venv: "python3 -m virtualenv -p python3.8 env"
- Activate venv: "source ./env/bin/activate"
- Install dependencies: "python3 -m pip install -r requirements.txt"
- Create zip file with the venv packages: "cd env/lib/python3.8/site-packages && zip -r9 ../../../../lambda.zip ."
- Add app files to the zip: "cd ../../../../ && zip -g lambda.zip -r app"
- terraform init
- terraform plan # if all it's okay then go to the next step
- terraform apply