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

ibm_is_instance adding a data volume there is no option to auto-delete #646

Closed
dprosper opened this issue Jul 11, 2019 · 5 comments
Closed
Labels
service/VPC Infrastructure Issues related to the VPC Infrastructure

Comments

@dprosper
Copy link
Contributor

Affected Resource(s)

Please list the resources as a list, for example:

  • ibm_is_instance
  • ibm_is_volume

Expected Behavior

The documentation does not indicate how to set the added volumes to automatically delete upon instance deletion.
image

@js-max
Copy link

js-max commented May 7, 2020

Bump on this issue

https://cloud.ibm.com/docs/vpc?topic=vpc-attaching-block-storage-cli

If CLI allows to do that believe that Terraform provider should also allow

@hkantare hkantare added the service/VPC Infrastructure Issues related to the VPC Infrastructure label Jan 5, 2021
@ErikEvenson
Copy link

Bump. Somewhat critical for our work.

@hkantare
Copy link
Collaborator

@ErikEvenson We have not added support to auto-delete volume when instance is destroyed beacuse it makes difficult to maintain the state of volumes...
Let's take a scenario if user provision volume and instance using automation tempalte...If we include an attribute auto-delete the volumes will be destroyed along with instance but when volume resource start to destroy it will fail because already volume is deleted by instance..

Unlike IBM Cloud Cli terraform needs to maintain the state of each resource/datasource for its smooth execution. If one resource controls the behaviour of other resource then we will not have consistent or valid state information.

@dprosper
Copy link
Contributor Author

@hkantare you are then assuming that the instance will be deleted eventually via Terraform. I think the ability to add the auto-delete should still be available, default to false and the documentation can offer up your reasoning above for not setting it to true and let the engineer decide to use it or not.

@kavya498
Copy link
Collaborator

Available in 1.21.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
service/VPC Infrastructure Issues related to the VPC Infrastructure
Projects
None yet
5 participants