terraform/cloudwatch.tf in aws_recon-0.4.1 vs terraform/cloudwatch.tf in aws_recon-0.4.2
- old
+ new
@@ -1,8 +1,8 @@
# https://www.terraform.io/docs/providers/aws/r/cloudwatch_event_rule.html
resource "aws_cloudwatch_event_rule" "default" {
- name = "${var.aws_recon_base_name}-${random_id.rule.hex}"
+ name = "${var.aws_recon_base_name}-${random_id.aws_recon.hex}"
description = "AWS Recon scheduled task"
schedule_expression = var.schedule_expression
}
# https://www.terraform.io/docs/providers/aws/r/cloudwatch_event_target.html
@@ -21,10 +21,6 @@
assign_public_ip = true
security_groups = [aws_security_group.sg.id]
subnets = [aws_subnet.subnet.id]
}
}
-}
-
-resource "random_id" "rule" {
- byte_length = 4
}