inspec / inspec-aws

InSpec AWS Resource Pack https://www.inspec.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Lazy loading not working for aws_iam_users resource

Rohit1509 opened this issue · comments

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.

fixed as part of #898