alibaba / terraform-provider

[DEPRECATED] This repo has been deprecated and please access https://github.com/terraform-providers/terraform-provider-alicloud
Apache License 2.0
384 stars 117 forks source link

redis创建成功terraform却报错 #786

Open BruceBee opened 3 years ago

BruceBee commented 3 years ago

在执行创建redis社区版集群规格的时候,云平台上redis创建成功了,但是terraform却报错了。 版本:社区版本,4.0 规格:redis.logic.sharding.1g.2db.0rodb.4proxy.default,2g2节点 我自己将资源名称定义为my_redis 实例ID、acckey已经省去

alicloud_kvstore_instance.my_redis: Still creating... [4m50s elapsed] alicloud_kvstore_instance.my_redis: Still creating... [5m0s elapsed] alicloud_kvstore_instance.my_redis: Still creating... [5m10s elapsed]

Error: [ERROR] terraform-provider-alicloud/alicloud/resource_alicloud_kvstore_instance.go:509: Resource id:r-xxxxx : [ERROR] terraform-provider-alicloud/alicloud/service_alicloud_r_kvstore.go:209: [ERROR] terraform-provider-alicloud/alicloud/service_alicloud_r_kvstore.go:188: Resource r-xxxxxx DescribeInstanceAttribute Failed!!! [SDK alibaba-cloud-sdk-go ERROR]: Post "https://r-kvstore.aliyuncs.com/?AccessKeyId=xxxxx&Action=DescribeInstanceAttribute&Format=JSON&InstanceId=r-xxxx&RegionId=cn-shenzhen&Signature=xxxx&SignatureMethod=HMAC-SHA1&SignatureNonce=xxxxx&SignatureType=&SignatureVersion=1.0&Timestamp=2021-06-01T07%3A22%3A39Z&Version=2015-01-01": dial tcp: i/o timeout

on main.tf line 7, in resource "alicloud_kvstore_instance" "my_redis": 7: resource "alicloud_kvstore_instance" "my_redis" {

BruceBee commented 3 years ago

补充,我在main.tf中,有以下四项:

payment_type = var.pay_type period = var.period auto_renew = var.auto_renew auto_renew_period = var.auto_renew_period

其中,设置payment_type为预付费PrePaid的时候,创建资源正常,设置payment_type为PostPaid按量时,出现上述错误