inspec-aws icon indicating copy to clipboard operation
inspec-aws copied to clipboard

undefined method `inline_policies' for aws_iam_role resource

Open ashima15448 opened this issue 4 years ago • 2 comments

I am executing the aws_iam_role resource functions as:

describe aws_iam_role(role_name: role) do
   it               { should exist }
   its('role_name') { should eq role }
   its('inline_policies') {should include inline_policy}
end

But I am getting the following error:

undefined method `inline_policies' for #<#<Class:0x00........

Same is the case with parameter 'attached_policies_name'.

ashima15448 avatar Aug 20 '20 08:08 ashima15448

Hi, @ashima15448 is this related to the comment on issue #154 ? If so please see my response

rmoles avatar Aug 20 '20 13:08 rmoles

@ashima15448 you have mentioned in issue #154 that your issue is now solved. Please let me know if there is any further action required on this issue. Otherwise, I will move to close this next week.

rmoles avatar Aug 21 '20 08:08 rmoles