Skip to content

Commit 029262b

Browse files
committed
fix protect-against-rds-instance-deletion.sentinel
1 parent f547401 commit 029262b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

governance/third-generation/aws/protect-against-rds-instance-deletion.sentinel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ RDSInstancesBeingDeleted = plan.find_resources_being_destroyed("aws_db_instance"
1616
violatingRDSInstances = plan.filter_attribute_was_value(RDSInstancesBeingDeleted,
1717
"deletion_protection", true, false)
1818

19-
length(violatingRDSInstances["messages"]) > 0 {
19+
if length(violatingRDSInstances["messages"]) > 0 {
2020
print("RDS instances with deletion_protection set to true cannot be destroyed.")
2121
plan.print_violations(violatingRDSInstances["messages"], "")
2222
}

0 commit comments

Comments
 (0)