terraform-provider-ibm icon indicating copy to clipboard operation
terraform-provider-ibm copied to clipboard

docs in is_instance_template do not cover volume_attachments completely

Open powellquiring opened this issue 2 years ago • 4 comments

https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/resources/is_instance_template

image

  • [ ] The Note is empty
  • [ ] The possible values for volume_prototype? There is an example above which would indicate "general-purpose" is one example that must be listed. What are the other possible values?:
  volume_attachments {
    delete_volume_on_instance_delete = true
    name                             = "example-volume-att-01"
    volume_prototype {
      iops     = 3000
      profile  = "general-purpose"
      capacity = 200
    }
  }
  • [ ] https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/resources/is_instance_volume_attachment image

powellquiring avatar Aug 11 '22 20:08 powellquiring

Maybe same as https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/resources/is_instance_volume_attachment

Allowed values are : [general-purpose, 5iops-tier, 10iops-tier, custom].

powellquiring avatar Aug 11 '22 21:08 powellquiring

  • [ ] I tried the example provided in the docs and it did not work:
  volume_attachments {
    delete_volume_on_instance_delete = true
    name                             = "${var.name}-template-volume-attachment"
    volume_prototype {
       iops     = 3000
      profile  = "general-purpose"
      capacity = 200

    }
  }

│ Error: [ERROR] Error creating InstanceTemplate: User defined volume IOPS is not allowed for storage tier of specified volume profile general-purpose
│ {
│     "StatusCode": 400,

powellquiring avatar Aug 11 '22 21:08 powellquiring

Handle docs to profile same was as api spec: https://github.ibm.com/riaas/api-spec/issues/4081

powellquiring avatar Aug 12 '22 17:08 powellquiring

@powellquiring thanks for reporting. fix is on its way

deepaksibm avatar Aug 16 '22 15:08 deepaksibm