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

docs in is_instance_template do not cover volume_attachments completely #3967

Closed
3 tasks
powellquiring opened this issue Aug 11, 2022 · 4 comments
Closed
3 tasks
Assignees
Labels
service/VPC Infrastructure Issues related to the VPC Infrastructure

Comments

@powellquiring
Copy link

powellquiring commented Aug 11, 2022

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
    }
  }
@astha-jain astha-jain self-assigned this Aug 11, 2022
@astha-jain astha-jain added the service/VPC Infrastructure Issues related to the VPC Infrastructure label Aug 11, 2022
@powellquiring
Copy link
Author

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
Copy link
Author

powellquiring commented Aug 11, 2022

  • 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
Copy link
Author

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

@deepaksibm
Copy link
Contributor

@powellquiring thanks for reporting. fix is on its way

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
Development

No branches or pull requests

3 participants