You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-3Lines changed: 8 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,8 +58,9 @@ module "lambda" {
58
58
// Trigger from a Cloudwatch Events rule.
59
59
attach_cloudwatch_rule_config =true
60
60
cloudwatch_rule_config {
61
-
name ="scheduled-run"
62
-
description ="Run my lambda every day at 8pm"
61
+
name ="scheduled-run"
62
+
enabled =true// set this to false if you want to have the trigger declared but disabled
63
+
description ="Run my lambda every day at 8pm"
63
64
schedule_expression ="cron(0 20 * * ? *)"
64
65
}
65
66
}
@@ -76,9 +77,13 @@ function name unique per region, for example by setting
76
77
77
78
| Name | Description | Type | Default | Required |
78
79
|------|-------------|:----:|:-----:|:-----:|
80
+
| attach\_cloudwatch\_rule\_config | Set this to true if using the cloudwatch_rule_config variable | string |`false`| no |
79
81
| attach\_dead\_letter\_config | Set this to true if using the dead_letter_config variable | string |`"false"`| no |
80
82
| attach\_policy | Set this to true if using the policy variable | string |`"false"`| no |
81
83
| attach\_vpc\_config | Set this to true if using the vpc_config variable | string |`"false"`| no |
84
+
| build\_command | The command that creates the Lambda package zip file | string |`"python build.py '$filename' '$runtime' '$source'"`| no |
85
+
| build\_paths | The files or directories used by the build command, to trigger new Lambda package builds whenever build scripts change | list |`<list>`| no |
86
+
| cloudwatch\_rule\_config | Cloudwatch Rule for the Lambda function | map |`<map>`| no |
82
87
| dead\_letter\_config | Dead letter configuration for the Lambda function | map |`<map>`| no |
83
88
| description | Description of what your Lambda function does | string |`"Managed by Terraform"`| no |
84
89
| enable\_cloudwatch\_logs | Set this to false to disable logging your Lambda output to CloudWatch Logs | string |`"true"`| no |
@@ -101,8 +106,8 @@ function name unique per region, for example by setting
101
106
102
107
| Name | Description |
103
108
|------|-------------|
109
+
| cloudwatch\_rule\_arn | The ARN of the Cloudwatch rule |
104
110
| function\_arn | The ARN of the Lambda function |
105
111
| function\_name | The name of the Lambda function |
106
112
| role\_arn | The ARN of the IAM role created for the Lambda function |
107
113
| role\_name | The name of the IAM role created for the Lambda function |
108
-
| cloudwatch\_rule\_arn | The ARN of the Cloudwatch rule |
0 commit comments