It doesn't seem as if I am able to run Inspec against multiple targets using different controls. For instance I have the following:
control "aws" do
describe aws_ec2_instance(name: 'Terraform Test Instance') do
it { should exist }
end
end
And I have the following
control 'operating_system' do
describe command('lsb_release -a') do
its('stdout') { should match (/Ubuntu/) }
end
end
When I run inspec directly I can pass -t for either ssh or aws, and the aws control works when I pass the aws target (aws://us-east-1) and the operating system control passes when I pass the ssh target.
Is there a way to make BOTH of these run using Kitchen-Inspec? I found the feature request that was closed by Inspec team that multiple targets is out of scope Issue 268, I didn't know however if Kitchen addressed this since it wraps Inspec.