I did an example serverless deploy from a blog and had no issues with it. However when I try to deploy my own project I get EPERM: operation not permitted, unlink errors. No errors if I deploy with empty requirements.txt.
I’m wondering if there’s something wrong with my serverless.yml file. But that’s just a wild guess. This is how it looks like.
service: f1-bot
provider:
name: aws
runtime: python3.6
region: eu-west-1
environment:
TELEGRAM_TOKEN: ${env:TELEGRAM_TOKEN}
F1_CHAT_ID: ${env:F1_CHAT_ID}
CHROME_DRIVER: ${env:CHROME_DRIVER}
functions:
webhook:
handler: handler.webhook
events:
- http: POST /
set_webhook:
handler: handler.set_webhook
events:
- http: POST /set_webhook
plugins:
- serverless-python-requirements
custom:
pythonRequirements:
dockerizePip: non-linux
More about my issue and other files can be see in the Reddit post.