You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// TODO: We should allow user to specify which data disk should be
// included into created image.
var dataDiskIds []*string
for _, disk := range instance.DataDisks {
dataDiskIds = append(dataDiskIds, disk.DiskId)
}
if len(dataDiskIds) > 0 {
req.DataDiskIds = dataDiskIds
}
Currently if you include a data_disk block, you won't be able to sync the resulting image to other regions:
code:InvalidParameter.InstanceImageNotSupport message:Instance image `img-pf0wpk45` not support action `SyncImages`
As a comparison, the Packer amazon-ebs plugin supports the following option:
no_device (bool) - Suppresses the specified device included in the block device mapping of the AMI.
This excludes the specified launch mapping from the created image.
The text was updated successfully, but these errors were encountered:
Since there is no way to correlate the disk IDs we get back from the DescribeInstances with the data disk definitions we have in our template, we can't selectively exclude data disks from the image. But at least this is better than nothing.
The code contains this:
Currently if you include a
data_disk
block, you won't be able to sync the resulting image to other regions:As a comparison, the Packer
amazon-ebs
plugin supports the following option:This excludes the specified launch mapping from the created image.
The text was updated successfully, but these errors were encountered: