mirror of
https://github.com/hashicorp/packer.git
synced 2026-09-26 17:53:59 -04:00
add note on EBS cleanup behavior
This commit is contained in:
@@ -0,0 +1 @@
|
||||
2.2.2
|
||||
@@ -278,6 +278,13 @@ Here is an example using the optional AMI tags. This will add the tags
|
||||
}
|
||||
```
|
||||
|
||||
-> **Note:** Packer users pre-built AMIs as the source for building images.
|
||||
These source AMIs may include volumes that are not flagged to be destroyed on
|
||||
termiation of the instance building the new image. Packer will attempt to clean
|
||||
up all residual volumes that are not designated by the user to remain after
|
||||
termination. If you need to preserve those source volumes, you can overwrite the
|
||||
termination setting by specifying `delete_on_termination=false` in the
|
||||
`launch_device_mappings` block for the device.
|
||||
|
||||
[1]: http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_BlockDeviceMapping.html
|
||||
[2]: http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_EbsBlockDevice.html
|
||||
|
||||
Reference in New Issue
Block a user