Giter Club home page Giter Club logo

Comments (7)

lubars avatar lubars commented on July 23, 2024

@zqfan, what error would you expect from trying to create a resource of type tencentcloud_cbs_storage with an account of type "prepaid"? As I mentioned in issue #2, I've been getting the following error:

* tencentcloud_cbs_storage.data: json: cannot unmarshal string into Go struct field .code of type int

And was wondering if prepaid vs. postpaid might be the issue.

from terraform-provider-tencentcloud.

zqfan avatar zqfan commented on July 23, 2024

post paid only available through API3.0, Terrafrom provider is implemented based on API2.0 (at that time, there is no other choice), we will have to upgrade to API 3.0, then post paid cbs storage resource can be available.

the error info is not caused by prepaid, but inconsistent API 2.0 response, sometimes the code field will be string type then terraform provider fails to parse the response

from terraform-provider-tencentcloud.

likexian avatar likexian commented on July 23, 2024

@lubars we have add supported to postpaid cbs.
would you have a try?
if there are any problems, please open a new issue.

from terraform-provider-tencentcloud.

lubars avatar lubars commented on July 23, 2024

@likexian, I just tried using most recent release:

# terraform version
Terraform v0.12.3
+ provider.null v2.1.2
+ provider.tencentcloud v1.10.0

Here is the resource I'm creating:

resource "tencentcloud_cbs_storage" "data" {
  storage_name      = "data"
  storage_type      = "CLOUD_BASIC"
  storage_size      = 60
  availability_zone = "na-siliconvalley-1"
}

This results in the following error:

Error: [TencentCloudSDKError] Code=InvalidParameter.DiskConfigNotSupported, Message=you have invalid param value, please check it first: [19021]当前地域不支持当前配置云盘 (beb884b5205c), RequestId=39b6929e-21da-48e8-8643-beb884b5205c
on infrastructure.tf line 379, in resource "tencentcloud_cbs_storage" "data":
379: resource "tencentcloud_cbs_storage" "data" {

Any idea what I'm doing wrong here? I got the same error using CLOUD_SSD.

from terraform-provider-tencentcloud.

likexian avatar likexian commented on July 23, 2024

@lubars
Sorry, it seems that there is no stock in na-siliconvalley-1, would you please try na-siliconvalley-2 .

from terraform-provider-tencentcloud.

lubars avatar lubars commented on July 23, 2024

@likexian: Getting the same error in na-siliconvalley-2:

Error: [TencentCloudSDKError] Code=InvalidParameter.DiskConfigNotSupported, Message=you have invalid param value, please check it first: [19021]当前地域不支持当前配置云盘 (ce6ad729ae67), RequestId=5b7876a5-7b09-461a-b23f-ce6ad729ae67

on ../../ICM/etc/Terraform/Tencent/Instance/infrastructure.tf line 379, in resource "tencentcloud_cbs_storage" "data":
379: resource "tencentcloud_cbs_storage" "data" {

Update: I just had a successful run using CLOUD_BASIC on na_siliconvalley-2.

from terraform-provider-tencentcloud.

likexian avatar likexian commented on July 23, 2024

@lubars
Sorry for the trouble, if there are any problems, please open a new issue.

from terraform-provider-tencentcloud.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.