# 10. Advanced - running InSpec against
# 10.1. Local Profile Run
inspec exec path/to/profile --input-file <path_to_your_input_file/name_of_your_input_file.yml> --reporter json:<path_to_your_output_file/name_of_your_output_file.json>
# 10.2. Containers (docker transport)
inspec exec path/to/profile -t docker://instance_id --input-file <path_to_your_input_file/name_of_your_input_file.yml> --reporter json:<path_to_your_output_file/name_of_your_output_file.json>
# 10.3. SSH Transport
inspec exec path/to/profile -t ssh://Username:Password@IP --input-file <path_to_your_input_file/name_of_your_input_file.yml> --reporter json:<path_to_your_output_file/name_of_your_output_file.json>
# 10.4. WINRM Transport
inspec exec path/to/profile -t winrm://Username@Hostname --password password --input-file <path_to_your_input_file/name_of_your_input_file.yml> --reporter json:<path_to_your_output_file/name_of_your_output_file.json>
# 10.5. Habitat Transport
inspec exec path/to/profile -t habitat://dev-hab
# 10.6. AWS Transport
The AWS Transport requires a bit of setup so follow the instructions here to create the correct environment variables AWS transport (opens new window)
inspec exec path/to/profile -t aws://us-east-2/auditing --input-file <path_to_your_input_file/name_of_your_input_file.yml> --reporter json:<path_to_your_output_file/name_of_your_output_file.json>
# 10.7. DigitalOcean Transport
Similar to how the AWS transport works there is a bit of setup involved before being able to run the inspec exec command. You need to set up your correct environment variable first at DigitalOcean Transport (opens new window)
inspec exec path/to/profile -t digitalocean:// --input-file <path_to_your_input_file/name_of_your_input_file.yml> --reporter json:<path_to_your_output_file/name_of_your_output_file.json>
# 10.8. AliCloud Transport
Similar to how the AWS and DigitalOcean transports work there is a bit of setup involved before being able to run the inspec exec command. You need to set up your correct environment variable first at AliCloud Transport (opens new window)
inspec exec path/to/profile -t alicloud://eu-west-1 --input-file <path_to_your_input_file/name_of_your_input_file.yml> --reporter json:<path_to_your_output_file/name_of_your_output_file.json>