ating the instance
> (i.e. create/delete keypair, security group, etc)?
>
> Terraform is a awesome tool to learn and not that hard to get started
> with. You will have to define all your infra from the test and then you
> create (apply) and after the tests have completed you run d
ht be a better
> option.
>
> // Rickard
>
> On 11 July 2017 at 20:07, Loren Gordon >
> wrote:
> > Hello,
> > I'd like to run tests using serverspec or testinfra against AMIs created
> > using Packer. Is anyone doing something similar?
> >
>
Hello,
I'd like to run tests using serverspec or testinfra against AMIs created
using Packer. Is anyone doing something similar?
I looked at testkitchen with kitchen-ec2, but it feels pretty weak when it
comes to setting up the AWS environment...for example, it doesn't create
the ssh keypair or
I do that with "launch_block_device_mappings". An example is below. The
"device_name" for the root device will depend a bit on the underlying AMI,
and whether it is PVM or HVM, but it should be the same as the Root Device
Name associated with the AMI itself.
"launch_block_device_map
Oh right. I see. On my system I don't see logs in my machine directory. But
I use the `output_directory` parameter to create the machine in an
alternate location. If you use the `output_directory` parameter, perhaps
the logs would be preserved wherever they are saved and only the virtual
disk f
Is packer making it to the "provisioners" stage? If so, and if you know the
path to the file you want, you could try using the `direction` parameter of
the "file" provisioner to download it.
{
"type": "file",
"source": "/tmp/manifest.log",
"destination