diff --git a/cloudwatch.tf b/cloudwatch.tf index 596183b..2c6fd15 100644 --- a/cloudwatch.tf +++ b/cloudwatch.tf @@ -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" { diff --git a/defaults.tf b/defaults.tf index 401081b..e1ee4cd 100644 --- a/defaults.tf +++ b/defaults.tf @@ -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 + } } } diff --git a/version.tf b/version.tf index f6d2caf..9818f37 100644 --- a/version.tf +++ b/version.tf @@ -1,3 +1,3 @@ locals { - _module_version = "0.0.8" + _module_version = "0.0.9" }