Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
linux_wiki:lambda_python_function [2019/08/09 22:20] billdozor [File Conversion Example: Pre-Reqs] |
linux_wiki:lambda_python_function [2019/08/09 22:29] (current) billdozor [File Conversion Example: Configure] |
||
---|---|---|---|
Line 121: | Line 121: | ||
---- | ---- | ||
+ | |||
+ | ===== Stop/Start EC2 Example: Configure ===== | ||
+ | |||
+ | * Click 'Add trigger' | ||
+ | * Select CloudWatch Events from the dropdown | ||
+ | * Rule: Create a new rule | ||
+ | * Rule name: <any name> | ||
+ | * Description: | ||
+ | * Rule type: Select ' | ||
+ | * Schedule expression: 00 05 * * ? * | ||
+ | * Expressions are in UTC: Example is every day at midnight (CDT) | ||
+ | * Minute Hour DayOfMonth Month DayOfWeek Year | ||
+ | * [[https:// | ||
+ | * Ensure ' | ||
+ | * Click " | ||
+ | * Select the Lambda function in the middle of the designer | ||
+ | * The function can now be edited inline or you can package up a Python function and upload it. | ||
+ | * Edit code inline: Use when the function is simple and does not require any dependencies that you would need a package installed for. | ||
+ | * Upload a zip file: When you develop the function outside of the AWS console and/or need dependencies installed. | ||
+ | |||
+ | ---- | ||
+ | |||
====== Lambda: Package and Upload Function ====== | ====== Lambda: Package and Upload Function ====== |