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

AWS: delete EBS volumes along with VMs #48

Open
vinseon opened this issue Mar 28, 2017 · 0 comments
Open

AWS: delete EBS volumes along with VMs #48

vinseon opened this issue Mar 28, 2017 · 0 comments

Comments

@vinseon
Copy link
Contributor

vinseon commented Mar 28, 2017

In AWSEC2JCloudsProvider, when we create a new Instance we do not provide any information about the EBS volume that will be attached to the new VM. Therefore, by default, JClouds creates a gp2 volume (regular SSD) with the same size than the source image.
According to Amazon, when a new EBS volume is created, the flag deleteOnTermination is set to true but it seems that it is not the default behavior of JClouds.
The VM's template must therefore be cutomized with specific volume informations, see the method mapNewVolumeToDeviceName for instance.
Without this fix we will continue to pay for the remaining volumes after VMs deletion!

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

1 participant