Summary if using AWS Lambda (Python)

Introduction

Here's a summary of what you should do if you use AWS Lambda (Python). Including those that have not been tried yet. Updated from time to time.

Things that should be done

-(First of all) I tried to summarize what to do after opening an AWS account https://dev.classmethod.jp/articles/after_get_aws_account/

--Applying the Jeffy framework Implementation of common processing for tracing and logging can be simplified. https://dev.classmethod.jp/cloud/app-fw-for-lamdba-jeffy-released/

--Apply AWS Lambda Destinations The following processing can be executed according to the execution result of Lambda. https://qiita.com/kojiisd/items/efcb2ac3d5cc176534ba

--Apply AWS Lambda Layers You can standardize frequently used libraries. https://qiita.com/t_okkan/items/394a15577bd1aad46ec3

--Parallel processing Parallel processing heavy processing. https://qiita.com/kenmaro/items/69fdd84e18e793a21790 https://aws.amazon.com/jp/blogs/news/parallelizing-across-multiple-cpu-gpus-to-speed-up-deep-learning-inference-at-the-edge/

--Apply AWS Lambda Power Tuning Optimize memory allocation. https://dev.classmethod.jp/cloud/aws-lambda-power-tuning/

--AWS Lambda cost savings Introduce a profile tool. https://dev.classmethod.jp/cloud/aws/lamba-profile-with-qcachegrind/

Relation

--Pip update (added to buildspec.yml)

#View a list of packages with updates with pip
pip list -o
#Batch update with command
pip list -o | tail -n +3 | awk '{ print $1 }' | xargs pip install -U

Recommended Posts

Summary if using AWS Lambda (Python)
Tweet WakaTime Summary using AWS Lambda
[AWS] Using ini files with Lambda [Python]
Summary of studying Python to use AWS Lambda
[Python] Scraping in AWS Lambda
Web scraping using AWS lambda
Check types_map when using mimetypes on AWS Lambda (Python)
Python Summary
Write AWS Lambda function in Python
Run Python on Schedule on AWS Lambda
Python summary
Using Lambda with AWS Amplify with Go
Create API with Python, lambda, API Gateway quickly using AWS SAM
Notify HipChat with AWS Lambda (Python)
[Python] File operation using if statement
I compared Node.js and Python in creating thumbnails using AWS Lambda
[Python] I wrote a REST API using AWS API Gateway and Lambda.
Install python library on Lambda using [/ tmp]
Regularly post to Twitter using AWS lambda!
Setting up Basic authentication using Python @Lambda
[Python] Run Headless Chrome on AWS Lambda
Connect to s3 with AWS Lambda Python
Summary of how to write AWS Lambda
Python + Selenium + Headless Chromium with aws lambda
Setting up Digest authentication using Python @Lambda
Python if statement
Python tutorial summary
Start using Python
[Python] if statement
python related summary
Scraping using Python
Python basics summary
Periodically run a python program on AWS Lambda
Serverless scraping using selenium with [AWS Lambda] -Part 1-
Python development on Ubuntu on AWS EC2 (using JupyterLab)
LINE BOT with Python + AWS Lambda + API Gateway
Serverless application with AWS SAM! (APIGATEWAY + Lambda (Python))
[AWS / Lambda] How to load Python external library
Amazon API Gateway and AWS Lambda Python version
Summary of Excel operations using OpenPyXL in Python
Feel free to turn Python using the library into an AWS Lambda function
Summary of points I was addicted to running Selenium on AWS Lambda (python)
Develop, run, and deploy AWS Lambda remotely using lambda-uploader
Summary about Python scraping
Python Django tutorial summary
Operate Redmine using Python Redmine
Summary when using Fabric
Fibonacci sequence using Python
[AWS IoT] Register things in AWS IoT using the AWS IoT Python SDK
Data analysis using Python 0
A python lambda expression ...
Summary about Python3 + OpenCV3
Python function argument summary
Data cleaning using Python
How to set layer on Lambda using AWS SAM
Using Python #external packages
I tried to get an AMI using AWS Lambda
Deploy Python3 function with Serverless Framework on AWS Lambda
Python directory operation summary
Support for Python 2.7 runtime on AWS Lambda (as of 2020.1)
Python AI framework summary