You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tf-modules/monitoring/config/config_rules_guardduty.tf

13 lines
458 B
HCL

resource "aws_config_config_rule" "guardduty_enabled" {
count = var.enable_aws_config && var.rule_guardduty_enabled ? 1 : 0
name = "guardduty-enabled-centralized"
maximum_execution_frequency = "TwentyFour_Hours"
source {
owner = "AWS"
source_identifier = "GUARDDUTY_ENABLED_CENTRALIZED"
}
tags = var.tags
depends_on = [aws_config_configuration_recorder.config_recorder]
}