- Newest
- Most votes
- Most comments
Hello,
Thank you for reaching out to us.
The Image Builder Pipeline executes a CreateLaunchTemplateVersion API call to create a new version of the Launch Template. To preserve the extant snapshot the same API needs to be executed with block device mapping specification. In AWS Web Console, creating a new version of the template automatically passes the block device mapping so the extant snapshot persists.
I have raised a feature request with the service team on your behalf to include block device mapping specification in the EC2 Image Builder Distribution settings. While I am unable to comment on if/when this feature may get released, I request you to keep an eye on our What's New and Blog pages for any new feature announcements.
Meanwhile, you may continue to manually update the Launch Template from console, or if you would like you can also update using AWS CLI by passing the block device mapping using the format:
{
"BlockDeviceMappings":[
{
"DeviceName":"/dev/sdf",
"Ebs":{
"SnapshotId":"snap-xxxxxxxxxxxxxxxxx"
}
}
],
"ImageId":"ami-xxxxxxxxxxxxxxxxx"
}
Relevant content
- asked 3 years ago
- Accepted Answerasked a year ago
- asked 2 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 3 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago