Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
linux_wiki:lambda_python_function [2019/07/31 21:56] billdozor [File Conversion Example: Packaging] |
linux_wiki:lambda_python_function [2019/08/09 22:13] billdozor [Lambda: Pre-Reqs] |
||
---|---|---|---|
Line 18: | Line 18: | ||
See below for Lambda examples. | See below for Lambda examples. | ||
* File Conversion Example - convert images from one format to another when created in a S3 bucket. | * File Conversion Example - convert images from one format to another when created in a S3 bucket. | ||
+ | * Stop/Start EC2 Instances Example - stop/start ec2 instances with a certain tag key:value on a schedule. | ||
Line 39: | Line 40: | ||
" | " | ||
" | " | ||
- | " | + | " |
+ | " | ||
], | ], | ||
" | " | ||
Line 46: | Line 48: | ||
" | " | ||
" | " | ||
- | " | + | " |
- | " | + | |
- | " | + | |
- | | + | |
- | ], | + | |
" | " | ||
} | } | ||
Line 120: | Line 118: | ||
* **Notes** | * **Notes** | ||
* The above is the default code that is created for you in a from scratch lambda function in the console. | * The above is the default code that is created for you in a from scratch lambda function in the console. | ||
- | * For the File conversion example and others, see: https:// | + | * For the File conversion example and others, see: https:// |
- | * Package up the directory into a zip<code bash> | + | * Package up the directory into a zip<code bash> |
- | zip -r convertImage.zip | + | zip -r convertImage.zip |
+ | * **Important**: | ||
* Upload to AWS Lambda | * Upload to AWS Lambda |