Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow AMI block device mapping to be created without snapshot #19

Open
ghost opened this issue Mar 29, 2021 · 0 comments
Open

Allow AMI block device mapping to be created without snapshot #19

ghost opened this issue Mar 29, 2021 · 0 comments

Comments

@ghost
Copy link

ghost commented Mar 29, 2021

This issue was originally opened by @otterley as hashicorp/packer#5290. It was migrated here as a result of the Packer plugin split. The original body of the issue is below.


I have a use case where I have two launch_block_device_mappings, /dev/sda1 (root device) and /dev/sdb (data device). The data device exists during the build phase to satisfy some build-time prerequisites, but the actual volume content can be discarded at the the end of the build. The device can also be quite small.

Meanwhile, there are two ami_block_device_mappings of the same device names, /dev/sda1 and /dev/sdb. I'd like /dev/sdb NOT to be associated with a snapshot, since at launch time the instance should have a fresh volume. But Packer seems to always associate it with a snapshot because the device was mapped at launch time. Setting snapshot_id to "" seems to have no effect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

0 participants