Not sure how unique of a scenario this is, but I'll try and explain the best I can.
Essentially at my company we use AWS CloudFormation to built Stacks to work on. Chef then provisions the software onto the stacks and downloads everything we need. I have been tasked with building InSpec tests for this newly built infrastructure to ensure that they are all configured properly after the Chef run has finished.
I have built the tests locally and I can use SSH to run the tests remotely. However, is there a way I can add the InSpec to Chef so that I don't have to run them remotely? I.e I want the tests to run automatically when the stack is built so that my colleagues won't moan that they have to run another command to run the tests!
Do I have to add the tests to a cookbook or something like that? I am new to Chef and InSpec so please forgive me if this is a really stupid question. If you need an extra clarity, please let me know. Thanks in advance.