We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2e7711 commit 20d399dCopy full SHA for 20d399d
main.tf
@@ -113,6 +113,7 @@ resource "aws_cloudwatch_event_rule" "event_rule" {
113
name = var.cloudwatch_event_rule_name
114
description = "Rule that triggers lambda function"
115
schedule_expression = local.schedule_expression
116
+ is_enabled = var.is_enabled
117
}
118
119
resource "aws_cloudwatch_event_target" "cloudwatch_event_target" {
variables.tf
@@ -57,4 +57,9 @@ variable "cloudwatch_event_rule_name" {
57
variable "lambda_role_name" {
58
type = string
59
description = "Name of the aws lambda execution role"
60
+}
61
+
62
+variable "is_enabled" {
63
+ type = bool
64
+ description = "Mark if CW event rule is enabled or not"
65
0 commit comments