Class: RDSDBInstanceMasterUsernameRule
Overview
cfn_nag rules related to RDS Instance master username
Instance Method Summary
collapse
#audit_impl, #sub_property_name
Methods inherited from BaseRule
#audit, #audit_impl
Instance Method Details
#password_property ⇒ Object
26
27
28
|
# File 'lib/cfn-nag/custom_rules/RDSDBInstanceMasterUsernameRule.rb', line 26
def password_property
:masterUsername
end
|
#resource_type ⇒ Object
22
23
24
|
# File 'lib/cfn-nag/custom_rules/RDSDBInstanceMasterUsernameRule.rb', line 22
def resource_type
'AWS::RDS::DBInstance'
end
|
18
19
20
|
# File 'lib/cfn-nag/custom_rules/RDSDBInstanceMasterUsernameRule.rb', line 18
def rule_id
'F24'
end
|
#rule_text ⇒ Object
8
9
10
11
12
|
# File 'lib/cfn-nag/custom_rules/RDSDBInstanceMasterUsernameRule.rb', line 8
def rule_text
'RDS instance master username must not be a plaintext string ' \
'or a Ref to a Parameter with a Default value. ' \
'Can be Ref to a NoEcho Parameter without a Default, or a dynamic reference to a secretsmanager value.'
end
|