After generating a image, is there any packer command available to test it? Or is there any other suggestions to test this image?
Thank you.
Best,
Norman
After generating a image, is there any packer command available to test it? Or is there any other suggestions to test this image?
Thank you.
Best,
Norman
This depends what you mean by “test it”. Do you want to check some final state of the applied configuration? Do you want to perform functional tests of the image in a deployed environment? Do you want to check whether a regression or a vulnerability has been introduced? These are all forms of testing, with different tools in different ways.
The general answer is probably “use a provisioner” . Some examples:
Or you could use Terratest to implement an end-to-end test of the template.