Table of Contents

Lambda: Python Function

General Information

Creating Lambda functions with Python for automated actions.

Checklist


Lambda: Pre-Reqs

In order to create a new Lambda function, there are some pre-reqs:

See below for Lambda examples.

File Conversion Example: Pre-Reqs

Create a S3 Bucket

Create an IAM role


Stop/Start EC2 Example: Pre-Reqs

Create an IAM role


Lambda: Create Function

After the pre-reqs are in place, the function can be created.


Lambda: Configure Function

After initial creation, you are brought to the Lambda function configuration page, with the designer at the top.

The designer allows you to add triggers (things that tell your function to start) and inspect what resources your function has access to.

File Conversion Example: Configure


Stop/Start EC2 Example: Configure


Lambda: Package and Upload Function

Packaging and uploading a lambda function.

File Conversion Example: Packaging