It's ok, I've managed to work this out.

Simply added an extra launch_block_device_mappings in my amazon-ebs builder 
and named the snapshot-id i needed to use. SImples !

            {
                "device_name": "/dev/xvdg",
                "snapshot_id": "snap-22da283e",
                "delete_on_termination": true
            }

Regards,
Andy

On Tuesday, 11 February 2020 12:49:32 UTC, Andy Burrows wrote:
>
> Hi,
>
> I need to attach an Amazon supplied windows media volume (Snapshot id = 
> snap-22da283e )  that holds the installation files for .NET 3.5, to my 
> Packer Builder.
>
> I will then run the .Net 3.5 installer and unattach the volume when done. 
> The media volume doesn't need to be in the resulting Machine Image.
>
> can this be easily accomplished by using the amazon-ebsvolume builder ?
>
> Does anyone have any similar use case and code ?
>
> Thanks
> Andy
>

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/1d2d9830-346b-4b2e-b0e6-ac0df574f34f%40googlegroups.com.

Reply via email to