mitre / aws-foundations-cis-baseline

InSpec profile to validate your VPC to the standards of the CIS Amazon Web Services Foundations Benchmark
Other
77 stars 30 forks source link

Fix slow running of profiles #21

Closed rx294 closed 5 years ago

rx294 commented 5 years ago

Control 1.24 seems to make profile run very show.

Issue caused due to the slow query returns on aws_iam_policy resource. Looks like a change in underlying ruby sdk is causing it.

Soln: Update aws_iam_policies to allow query of only attached policies. This will reduce the number of policies that needs to be inspected.

Soln tested