I have created an inspec profile containing all the test cases I might need for my AWS account. However there is a chance that I do not have certain resources. So I want to skip the respective controls. For example: My profile contains tests for EFS. However I might choose not to use EFS for sometime. How can I skip the controls for EFS.
I have seen that --control allows us to list the controls we want to execute. However with a large number of controls, this is very inefficient.
Only_if has been suggested in some places, but as per my understanding, it can be used to check packages on a machine. Here I am trying to check AWS resources.
How can this be achieved then?