-
Notifications
You must be signed in to change notification settings - Fork 202
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
Might be leaving orphaned EBS volumes #30
Comments
@coderanger I'm not super familiar with the EC2 API/gem. Do you know if there's something special we need to do to also destroy the EBS volumes? |
@sethvargo @coderanger I am not exactly familiar with the correct syntaxes, but this is what I define in my vagrant-aws config to make sure EBS's are destroyed after termination: block_device_mapping = [
{
'DeviceName' => '/dev/sda',
'Ebs.VolumeSize' => 100,
'Ebs.DeleteOnTermination' => true
}
] Hope this helps. |
@JeanMertz would that config go into the server create call in fog? Thanks! |
@fnichol see: https://groups.google.com/forum/#!topic/ruby-fog/EhAPWxsXsCY In short: @compute.servers.create(
flavor_id: 'm1.small',
image_id: 'ami-83e4bcea',
block_device_mapping: [{
'DeviceName' => '/dev/sda1',
'Ebs.VolumeSize' => 20,
'Ebs.DeleteOnTermination' => true
}]
) |
@JeanMertz I think that's what I needed, thank you :) |
@fnichol ran into exact same issue with at little higher scale, this is quick fix #45 as @JeanMertz provided |
can we merge it ? |
Fixed in a18c88a |
I ended up with 51 unattached volumes after a day of testing.
The text was updated successfully, but these errors were encountered: