Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Lazy Loading to Controls #846

Open
jnikles1 opened this issue Feb 7, 2022 · 0 comments
Open

Add Lazy Loading to Controls #846

jnikles1 opened this issue Feb 7, 2022 · 0 comments

Comments

@jnikles1
Copy link
Contributor

jnikles1 commented Feb 7, 2022

Performance benefits can be seen in controls which make multiple API calls in the background, when lazy loading is implemented.

Detailed Description

a list of some controls which would benefit from this:

  • aws_iam_users
  • aws_iam_user
  • aws_s3_bucket
  • aws_alb
  • aws_cloudformation_template
  • aws_elb
  • aws_hosted_zone
  • aws_iam_access_keys
  • aws_kms_key

Context

When faced with a high number of aws resources for a specific inspec resource, making multiple api calls in the initialization of the inspec resource can cause performance degradation. Lazy loading will allow these API calls to be used only when necessary

Possible Implementation

The aws_s3_buckets resource can be used as an example implementation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant