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

redis创建成功terraform却报错 #786

Open
BruceBee opened this issue Jun 1, 2021 · 1 comment
Open

redis创建成功terraform却报错 #786

BruceBee opened this issue Jun 1, 2021 · 1 comment

Comments

@BruceBee
Copy link

BruceBee commented Jun 1, 2021

在执行创建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
Copy link
Author

BruceBee commented Jun 1, 2021

补充,我在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按量时,出现上述错误

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant