Comments (7)
@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.
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.
@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.
@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.
@lubars
Sorry, it seems that there is no stock in na-siliconvalley-1, would you please try na-siliconvalley-2 .
from terraform-provider-tencentcloud.
@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.
@lubars
Sorry for the trouble, if there are any problems, please open a new issue.
from terraform-provider-tencentcloud.
Related Issues (20)
- Bug in documentation for TKE kubernetes_node_pool resource HOT 2
- bug on security_group_lite_rule
- Cannot create CVM with CLOUD_HSSD
- Failed to create tencentcloud_dc_gateway_ccn_route resource
- cvm key_name err HOT 1
- Import sfc function get a error "Cannot import non-existent remote object"
- COS 可以支持元数据加速吗
- Support tencentcloud_private_dns_zone data source HOT 1
- Invalid mem_size in tencentcloud_redis_instance HOT 1
- After updating to 1.81.70, TencentCloud returns SDKError HOT 1
- Creation of tencentcloud_vod_sub_application is successful, but terraform returns invalid vod user HOT 1
- 使用 tencentcloud_security_groups 数据源资源获取的安全组id错误 HOT 3
- Link cvm to clb backend, an error "instance launch failed" throw HOT 1
- 1.81.77 incompatibility/broken ? HOT 3
- tencentcloud_cbs_storage_attachment 支持挂载存储后指定挂载路径及格式化文件系统
- tencentcloud_tcr_instance需要支持指定region以及开启COS多AZ特性 HOT 1
- 支持修改更新 TKE eniipamd 组件的全局配置 HOT 2
- TKE添加节点或者节点池,支持自定义脚本功能 HOT 1
- TKE查询集群节点信息支持Limit可配置或者默认值设为100 HOT 2
- 告警规则tencentcloud_monitor_alarm_policy不支持复合指标的创建
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terraform-provider-tencentcloud.