Class: EFSFileSystemEncryptedRule
- Defined in:
- lib/cfn-nag/custom_rules/EFSFileSystemEncryptedRule.rb
Instance Method Summary collapse
Methods inherited from BaseRule
Instance Method Details
#audit_impl(cfn_model) ⇒ Object
17 18 19 20 21 22 23 24 25 26 |
# File 'lib/cfn-nag/custom_rules/EFSFileSystemEncryptedRule.rb', line 17 def audit_impl(cfn_model) resources = cfn_model.resources_by_type('AWS::EFS::FileSystem') violating_filesystems = resources.select do |filesystem| filesystem.encrypted.nil? || filesystem.encrypted.to_s.casecmp('false').zero? end violating_filesystems.map(&:logical_resource_id) end |
#rule_id ⇒ Object
13 14 15 |
# File 'lib/cfn-nag/custom_rules/EFSFileSystemEncryptedRule.rb', line 13 def rule_id 'F27' end |
#rule_text ⇒ Object
5 6 7 |
# File 'lib/cfn-nag/custom_rules/EFSFileSystemEncryptedRule.rb', line 5 def rule_text 'EFS FileSystem should have encryption enabled' end |
#rule_type ⇒ Object
9 10 11 |
# File 'lib/cfn-nag/custom_rules/EFSFileSystemEncryptedRule.rb', line 9 def rule_type Violation::FAILING_VIOLATION end |