CU-CloudCollab / aws-config-check

These scripts provide an easy way to check if your AWS account is in compliance with configuration required by Cornell policy.
2 stars 0 forks source link

Script fails when certain policy elements are nil #6

Closed sbower closed 8 years ago

sbower commented 8 years ago

./check-aws.rb:155:in check_password_policy': undefined method>' for nil:NilClass (NoMethodError) from ./check-aws.rb:132:in check_iam' from ./check-aws.rb:444:in

'

In this case max_password_age is nill. should fail the check for sure, need to add nill checks to all the statements.