Skip to content

Commit 20d399d

Browse files
author
simpleme
committed
is_enabled property
1 parent e2e7711 commit 20d399d

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ resource "aws_cloudwatch_event_rule" "event_rule" {
113113
name = var.cloudwatch_event_rule_name
114114
description = "Rule that triggers lambda function"
115115
schedule_expression = local.schedule_expression
116+
is_enabled = var.is_enabled
116117
}
117118

118119
resource "aws_cloudwatch_event_target" "cloudwatch_event_target" {

variables.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,9 @@ variable "cloudwatch_event_rule_name" {
5757
variable "lambda_role_name" {
5858
type = string
5959
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"
6065
}

0 commit comments

Comments
 (0)