AWS OpsWorks Chef Automate -> InSpec

Just starting out with chef. Using AWS OpsWorks and got some cookbooks to work with on premises servers and AWS EC2.

Now I’m getting into InSpec and added a .kitchen.yml file. This works fine with kitchen verify and inspec exec but I want to use the Chef Automate to run the tests and profiles.

Any suggestions on where to read? Seems like it doesn’t exist in OpsWorks? or am I missing something.

Thanks.

You can add a step in your build cookbook to call a test-kitchen run during
workflow; for example, you might want to have it call test-kitchen using
ec2 during the Acceptance phase.

Take a look at https://github.com/chef-cookbooks/delivery-sugar
(specifically the delivery_test_kitchen resource.)