inspec / inspec-aws

InSpec AWS Resource Pack https://www.inspec.io/
Other
133 stars 106 forks source link

Lazy loading not working for aws_iam_users resource #896

Closed Rohit1509 closed 2 years ago

Rohit1509 commented 2 years ago

Lazy loading bug in aws_iam_users resource

Describe the problem

Some of the attributes mentioned in the documentation like 'has_console_password' are not working with the above mentioned resource. It is giving out following error:

describe aws_iam_users.where(has_console_password: true).where(has_mfa_enabled: false) do

image

Possible Solution

Fix how the lazy loading is implemented.

sathish-progress commented 2 years ago

fixed as part of #898