Class: Terracop::Cop::Aws::IamPolicyAttachment
- Defined in:
- lib/terracop/cop/aws/iam_policy_attachment.rb
Overview
This cop warns against the use of an evil all encompassing aws_iam_policy_attachment.
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
40 41 42 43 44 |
# File 'lib/terracop/cop/aws/iam_policy_attachment.rb', line 40 def check offense('Use aws_iam_role_policy_attachment, ' \ 'aws_iam_user_policy_attachment, or ' \ 'aws_iam_group_policy_attachment instead.') end |