Provisioning a Windows Media drive from an AWS Snapshot - use amazon-ebsvolume ?

8 views
Skip to first unread message

Andy Burrows

unread,
Feb 11, 2020, 7:49:32 AM2/11/20
to Packer
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

Andy Burrows

unread,
Feb 11, 2020, 8:20:03 AM2/11/20
to Packer
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
Reply all
Reply to author
Forward
0 new messages