A module that package your python code and dependencies together then run on a scheduled time via cloudwatch.
IMPORTANT: If your scripts requires variables, this must be uncommentted and edited. There must be a variable block for each variable in variables.tf
ex.
# script requires MASTER_PASSWORD .
environment {
variables = {
MASTER_PASSWORD = var.master_password
}
}
Name | Version |
---|---|
terraform | ~> 0.12.0 |
aws | ~> 2.0 |
null | ~> 2.0 |
template | ~> 2.0 |
Name | Version |
---|---|
aws | ~> 2.0 |
Name | Description | Type | Default | Required |
---|---|---|---|---|
enabled | This module will not create any resources unless enabled is set to "true" | bool |
true |
no |
cron_schedule | CloudWatch Events rule schedule using cron or rate expression | string |
n/a | yes |
function_name | Function Name | string |
n/a | yes |
function_description | Description for Lambda Function | string |
n/a | yes |
function_mem_size | Lambda Function allocated memory size 128MB to 3008MB AWS Limit | number |
n/a | yes |
function_timeout | Lambda Function timeout 1 second to 900 seconds. AWS Limit | number |
n/a | yes |
source_code_path | Where your Python script lives | string |
n/a | yes |
script_name | Python script name | string |
n/a | yes |
python_version | The Python version to use | string |
"3.7" |
yes |
subnet_ids | Subnet IDs | list(string) |
n/a | yes |
function_timeout | Timeout for Lambda function in seconds | number |
300 |
no |
vpc_id | The VPC ID for the Lambda function | string |
n/a | yes |
Name | Description |
---|---|
lambda_function_arn | ARN of the Lambda Function |
security_group_id | Security Group ID of the Lambda Function |