ibm-cloud-docs / ibm-cloud-provider-for-terraform

Documentation repository for ibm-cloud-provider-for-terraform
3 stars 17 forks source link

VPC Gen2 volume example is failing with an error. #7

Open JohnPaulParkin opened 3 years ago

JohnPaulParkin commented 3 years ago

The first volume example fails : https://cloud.ibm.com/docs/terraform?topic=terraform-vpc-gen2-resources#volume-sample

resource "ibm_is_volume" "testacc_volume" {
  name     = "test_volume"
  profile  = "10iops-tier"
  zone     = "us-south-1"
  iops     = 10000
  capacity = 100
}

The output result when trying to use this configuration is :

    "Result": {
        "errors": [
            {
                "code": "volume_profile_iops_invalid",
                "message": "The volume profile specified in the request cannot accept custom IOPS.",
                "more_info": "http://www.bluemix.com/help#volume_profile_iops_invalid",
                "target": {
                    "name": "",
                    "type": ""
                }
            }
        ],
        "trace": "d24e832407bb66c67ef776551c5bae6b"
    },

Removing the iops options from the definition allows the example to pass.

geethasathyamurthy commented 3 years ago

@JohnPaulParkin, Sorry for the delay in the reply, we have updated the doc as per the issue raised. The docs will be published with the edits by EOD.

Thanks much for letting us know, Geetha

geethasathyamurthy commented 3 years ago

Team, request to close this issue.

geethasathyamurthy commented 3 years ago

@JohnPaulParkin This is updated here https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/resources/is_volume Request to confirm and close the issue, if it is fixed.

Thanks, Geetha