Skip to content

Instantly share code, notes, and snippets.

@PrashantBhatasana
Created March 26, 2021 06:54
Show Gist options
  • Save PrashantBhatasana/8202eb043837e02f7de1e8ce36f63d78 to your computer and use it in GitHub Desktop.
Save PrashantBhatasana/8202eb043837e02f7de1e8ce36f63d78 to your computer and use it in GitHub Desktop.
resource "aws_cloudwatch_event_rule" "inspector_event_schedule" {
name = "inspector-schedule-cloudwatch-event-rule${var.random_id_prefix}"
description = "Trigger an Inspector Assessment"
schedule_expression = var.schedule_expression
}
resource "aws_cloudwatch_event_target" "inspector_event_target" {
rule = aws_cloudwatch_event_rule.inspector_event_schedule.name
arn = var.inspector_assessment_template_arn
role_arn = var.inspector_event_role_arn
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment