Created
March 26, 2021 06:54
-
-
Save PrashantBhatasana/8202eb043837e02f7de1e8ce36f63d78 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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