-
Notifications
You must be signed in to change notification settings - Fork 676
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
VPC Feature Request: Implement creation of dataVolumes in the instance create routine #881
Comments
As per #2672 We are supporting volume attachments as a separate resource(which supports both creation of a new volume, attaching existing volumes), keeping the existing feature which supports attaching an existing volume.
|
@ujjwal-ibm This is not clear to me, does this mean now I can do what I requested, i.e. create an instance AND a volume just like the CLI? |
@dprosper no. We had some limitation wrt terraform and the backend sdk, so we couldn't support it the way cli does. As per the new support:
|
ok so I guess this can be close as can-t-fix. thx |
Closing this issue.. |
The ibmcloud CLI to create a virtual server instance in VPC allows you to create the data volume during the create instance.
The IBM Terraform provider does it in three (3) steps:
Issue #871 uncovered a problem that happens when multiple VSIs are getting created at the same time and the attach volume is happening when the VSI is not in a running state.
Although this can be fixed by confirming the VSI is running, this is not an ideal situation as this might still cause problems when cloud-init is added to the picture.
Ideally, the Terraform process should match the ibmcloud CLI process and allow the creation of the dataVolumes to occur during the VSI creation process (i.e. a single step as opposed to the 3 step process above). The RIAS API support this:
https://cloud.ibm.com/apidocs/vpc-on-classic#create-an-instance
The text was updated successfully, but these errors were encountered: