Add Windows/InSpec Support
Pre-release
Pre-release
It is now possible to use this transport with Windows instances as well. By changing some return value handling, the transport can also handle InSpec scans now.
Usage examples:
inspec exec https://github.com/dev-sec/linux-baseline/archive/2.5.0.tar.gz -t awsssm://i-0123456789abcd
inspec exec https://github.com/dev-sec/windows-baseline/archive/2.1.6.tar.gz -t awsssm://i-123456789abcdeThe transport also checks if the instance is up and registered with SSM. It tries to resolve the Instance ID from IP or a given hostname. You need to provide valid AWS credentials as usual (AWS CLI profile, instance role, environment variables etc).
Please note, that by principle the execution takes a long while as every check is individually started on the target machine. Experimental runtime for the Windows benchmark was 27 minutes and for the Linux benchmark only 2 minutes.