Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Jan 26, 2022
1 parent da0b152 commit 1311b7f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cloudwatch.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ resource "aws_cloudwatch_log_group" "log" {
resource "aws_cloudwatch_event_rule" "ec2_rule" {
name = local.name
description = "Capture EC2 Events to hande dynamic Route53 registration"
event_pattern = json(local.cloudwatch_event_pattern)
event_pattern = jsonencode(local.cloudwatch_event_pattern)
}

resource "aws_cloudwatch_event_target" "ec2_target" {
Expand Down
4 changes: 3 additions & 1 deletion defaults.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ locals {
"lambda_file" = "ddns-lambda"
"lambda_timeout" = 300
"lambda_description" = "Take EC2 Events and register/deregister from Route53"
"cloudwatch" = 180
"cloudwatch" = {
"retention_in_days" = 180
}
}
}
2 changes: 1 addition & 1 deletion version.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
locals {
_module_version = "0.0.8"
_module_version = "0.0.9"
}

0 comments on commit 1311b7f

Please sign in to comment.