[Piyopiyokai # 1] Let's play with Lambda: Creating a Lambda function

Handslab Piyopiyokai # 1 https://handslab.doorkeeper.jp/events/42327 This is the material.

Prerequisites

--I have an AWS account --You have the authority to operate Lambda with the account in question. --Has a Twitter API key and access token --Zip the set of uploads to Lambda and have it on the client

Log in to the Lambda console

Caution Please check if it is in the Tokyo region

Select the blue "Get Started Now"

Lambda_Management_Console.jpg

__ The following screen for those who start for the first time __

Lambda_Management_Console2.jpg

Lambda function settings

First of all, it will transition to the screen to select the Lambda function sample If you want to write a script using the sample, choose the one that matches what you want to do. __ This time I will skip it and set it myself. __

Lambda_Management_Console.jpg

__ Set the following items __

Lambda_Management_Console.jpg

Continued

Lambda_Management_Console.jpg

Creating an IAM Role

Jump to the creation screen by selecting the following from the roll pull-down Lambda_Management_Console.jpg

IAM_Management_Console.jpg

This will create an IAM Role and the settings will reflect the write

【Caution】 __ This time I'm using only the log export position, so I'm using the above settings. __ __ When linking with another AWS service, give the role appropriate permissions __

Lambda_Management_Console.jpg

A confirmation screen will be output, so press "Create function" to create the function.

That's all for creating a function. Prepare a trigger for testing and test it.

Recommended Posts

[Piyopiyokai # 1] Let's play with Lambda: Creating a Lambda function
[Piyopiyokai # 1] Let's play with Lambda: Creating a Python script
[Piyopiyokai # 1] Let's play with Lambda: Get a Twitter account
Let's create a chat function with Vue.js + AWS Lambda + dynamo DB [AWS settings]
[Let's play with Python] Make a household account book
Let's play with 4D 4th
Let's play with Amedas data-Part 1
Let's play with Amedas data-Part 4
Try creating a CRUD function
Let's draw a logistic function
Let's play with Amedas data-Part 3
Let's play with Amedas data-Part 2
Creating a decision tree with scikit-learn
Let's make a GUI with python.
Creating a Flask server with Docker
Let's make a breakout with wxPython
Let's play with Excel with Python [Beginner]
Creating a simple app with flask
[Python] Make the function a lambda function
Let's make a graph with python! !!
Let's make a supercomputer with xCAT
[Python 3.8 ~] How to define a recursive function smartly with a lambda expression
[Introduction to WordCloud] Let's play with scraping ♬
Create a Python function decorator with Class
Creating a simple PowerPoint file with Python
Let's make a shiritori game with Python
Play like a web app with ipywidgets
[Complement] [PySide] Let's play with Qt Designer
Let's create a free group with Python
Set up a Lambda function and let it work with S3 events!
Let's scrape a dynamic site with Docker
Let's make a voice slowly with Python
Creating a login screen with Django allauth
Let's make a simple language with PLY 1
Let's calculate Godel's β function with SymPy
Equipped with a card function using payjp
Let's make a web framework with Python! (1)
Let's make a tic-tac-toe AI with Pylearn 2
Let's make a Twitter Bot with Python!
Let's make a web framework with Python! (2)
[AWS] Let's run a unit test of Lambda function in the local environment
Python hand play (let's get started with AtCoder?)
Play with Lambda layer (python) for about 5 minutes
Procedure for creating a LineBot made with Python
Lambda function deploy best practices with CircleCI + Lamvery
A memo when creating a python environment with miniconda
Evaluate CNN performance with a custom merit function
Let's replace UWSC with Python (5) Let's make a Robot
Commands for creating a python3 environment with virtualenv
Flow of creating a virtual environment with Anaconda
Try creating a FizzBuzz problem with a shell program
Play with Prophet
python3x: lambda function
Play with PyTorch
Play with 2016-Python
Play with CentOS 8
Play with Pyramid
Play with Fathom
Looking back on creating a web service with Django 1
I made a ready-to-use syslog server with Play with Docker
[AWS] Play with Step Functions (SAM + Lambda) Part.3 (Branch)