Class: Terracop::Cop::Aws::DescribeSecurityGroupRules
- Defined in:
- lib/terracop/cop/aws/describe_security_group_rules.rb
Overview
This cop checks for AWS Security Group rules with no description. Reading terraform code can immediately tell why a rule is in place, but the AWS console is a bit more cryptic and a description can help.
Instance Attribute Summary
Attributes inherited from Base
#attributes, #index, #name, #offenses, #type
Instance Method Summary collapse
Methods inherited from Base
config, cop_name, #human_name, #initialize, #offense, run
Constructor Details
This class inherits a constructor from Terracop::Cop::Base
Instance Method Details
#check ⇒ Object
27 28 29 30 31 |
# File 'lib/terracop/cop/aws/describe_security_group_rules.rb', line 27 def check return unless attributes['description'] == '' offense('Add a description to security group rules.') end |