class RDSDBInstanceStorageEncryptedRule
Public Instance Methods
audit_impl(cfn_model)
click to toggle source
# File lib/cfn-nag/custom_rules/RDSDBInstanceStorageEncryptedRule.rb, line 19 def audit_impl(cfn_model) resources = cfn_model.resources_by_type('AWS::RDS::DBInstance') violating_instances = resources.select do |instance| instance.dBClusterIdentifier.nil? && not_truthy?(instance.storageEncrypted) end violating_instances.map(&:logical_resource_id) end
rule_id()
click to toggle source
# File lib/cfn-nag/custom_rules/RDSDBInstanceStorageEncryptedRule.rb, line 15 def rule_id 'F27' end
rule_text()
click to toggle source
# File lib/cfn-nag/custom_rules/RDSDBInstanceStorageEncryptedRule.rb, line 7 def rule_text 'RDS DBInstance should have StorageEncrypted enabled' end
rule_type()
click to toggle source
# File lib/cfn-nag/custom_rules/RDSDBInstanceStorageEncryptedRule.rb, line 11 def rule_type Violation::FAILING_VIOLATION end