Effortlessly with Serverless Python Requirements

When using a Python module with AWS Lambda, I think that Troublesome procedure is required to use a module that must be compiled with Amazon Linux. I used to, but there was an easier way. Use the serverless framework (https://serverless.com/) and plugins (https://github.com/UnitedIncome/serverless-python-requirements).

It's almost as Class Method's article, but some yaml is written. It was different.

If you are compiling a non-pure-Python module, add the following settings to serverless.yml.

serverless.yml


plugins:
  - serverless-python-requirements

custom:
  pythonRequirements:
    dockerizePip: true

Only this is really easy.

Where is requirements.py? If you think that, please execute the following command.

% sls requirements install

Recommended Posts

Effortlessly with Serverless Python Requirements
Easily serverless with Python with chalice
FizzBuzz with Python3
Scraping with Python
Scraping with Python
Python with Go
Twilio with Python
Integrate with Python
Play with 2016-Python
AES256 with python
Tested with Python
python starts with ()
with syntax (Python)
Bingo with python
Zundokokiyoshi with python
Serverless face recognition API made with Python
Touch AWS with Serverless Framework and Python
Excel with Python
Microcomputer with Python
Cast with python
Use additional Python packages with Serverless Framework (v1.x)
Serverless application with AWS SAM! (APIGATEWAY + Lambda (Python))
Serial communication with Python
Zip, unzip with python
Django 1.11 started with Python3.6
Python with eclipse + PyDev.
Socket communication with Python
Data analysis with python 2
Scraping with Python (preparation)
Try scraping with Python.
Learning Python with ChemTHEATER 03
Sequential search with Python
"Object-oriented" learning with python
Handling yaml with python
Solve AtCoder 167 with python
Serial communication with python
[Python] Use JSON with Python
Learning Python with ChemTHEATER 05-1
Learn Python with ChemTHEATER
Run prepDE.py with python3
1.1 Getting Started with Python
Collecting tweets with Python
Binarization with OpenCV / Python
3. 3. AI programming with Python
Kernel Method with Python
Scraping with Python + PhantomJS
Drive WebDriver with python
[Python] Redirect with CGIHTTPServer
Voice analysis with python
Think yaml with python
Operate Kinesis with Python
Use DynamoDB with Python
Zundko getter with python
Handle Excel with python
Ohm's Law with Python
Run Blender with python
Python starting with Windows 7
Heatmap with Python + matplotlib
Multi-process asynchronously with python
Python programming with Atom
Learning Python with ChemTHEATER 02