output "rules" { description = "Every rule checked, by name." value = concat(sort(keys(local.pack_rules)), [aws_config_config_rule.s3_public_read.name]) } output "verify" { description = "A drift, its alert, and its compliance record." value = <<-EOT In a scratch account, create a security group that allows port 22 from 0.0.0.0/0. Within a few minutes the alert arrives, and this lists the group: aws configservice describe-compliance-by-config-rule --compliance-types NON_COMPLIANT Delete the group; the rule returns to COMPLIANT on its next evaluation. EOT }