Skip to content

Instantly share code, notes, and snippets.

@pnjha
Created June 9, 2022 08:57
Show Gist options
  • Save pnjha/62946dc3374f40c0336aaa255347ac26 to your computer and use it in GitHub Desktop.
Save pnjha/62946dc3374f40c0336aaa255347ac26 to your computer and use it in GitHub Desktop.
Error message while creating v6.0 redis instance via terraform
2022/06/09 04:34:48 [WARN] Log levels other than TRACE are currently unreliable, and are supported only for backward compatibility.
Use TF_LOG=TRACE to see Terraform's internal logs.
----
2022/06/09 04:34:48 [INFO] Terraform version: 0.14.9
2022/06/09 04:34:48 [INFO] Go runtime version: go1.15.6
2022/06/09 04:34:48 [INFO] CLI args: []string{"/usr/bin/terraform", "-chdir=/usr/app/terraform_workspace", "init"}
2022/06/09 04:34:48 Loading CLI configuration from /opt/terraform/.tfconfig
2022/06/09 04:34:48 [INFO] TF_CLI_ARGS_init value: "-no-color"
2022/06/09 04:34:48 [INFO] CLI command args: []string{"init", "-no-color"}
2022/06/09 04:34:48 [WARN] Log levels other than TRACE are currently unreliable, and are supported only for backward compatibility.
Use TF_LOG=TRACE to see Terraform's internal logs.
----
Initializing the backend...
2022/06/09 04:34:48 [INFO] Failed to read plugin lock file .terraform/plugins/linux_amd64/lock.json: open .terraform/plugins/linux_amd64/lock.json: no such file or directory
Initializing provider plugins...
- Finding latest version of aliyun/alicloud...
2022/06/09 04:34:48 [WARN] ignoring file "registry.terraform.io/aliyun/alicloud/1.170.0.json" as possible package for registry.terraform.io/aliyun/alicloud: filename lacks expected prefix "terraform-provider-alicloud_"
2022/06/09 04:34:48 [WARN] ignoring file "registry.terraform.io/aliyun/alicloud/index.json" as possible package for registry.terraform.io/aliyun/alicloud: filename lacks expected prefix "terraform-provider-alicloud_"
- Installing aliyun/alicloud v1.170.0...
- Installed aliyun/alicloud v1.170.0 (unauthenticated)
Terraform has created a lock file .terraform.lock.hcl to record the provider
selections it made above. Include this file in your version control repository
so that Terraform can guarantee to make the same selections by default when
you run "terraform init" in the future.
Terraform has been successfully initialized!
[GLOBAL] - info : Terraform operation successfully completed
An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
+ create
Terraform will perform the following actions:
# alicloud_kvstore_instance.redis_cache will be created
+ resource "alicloud_kvstore_instance" "redis_cache" {
+ auto_renew = false
+ availability_zone = (known after apply)
+ backup_period = (known after apply)
+ backup_time = (known after apply)
+ bandwidth = (known after apply)
+ capacity = (known after apply)
+ config = {
+ "maxmemory-policy" = "noeviction"
}
+ connection_domain = (known after apply)
+ connection_string = (known after apply)
+ coupon_no = "youhuiquan_promotion_option_id_for_blank"
+ db_instance_name = <redacted>
+ enable_backup_log = 0
+ enable_public = (known after apply)
+ end_time = (known after apply)
+ engine_version = "6.0"
+ force_upgrade = true
+ id = (known after apply)
+ instance_charge_type = (known after apply)
+ instance_class = "redis.basic.mid.default"
+ instance_name = (known after apply)
+ instance_release_protection = (known after apply)
+ instance_type = "Redis"
+ maintain_end_time = (known after apply)
+ maintain_start_time = (known after apply)
+ modify_mode = 0
+ node_type = (known after apply)
+ order_type = "UPGRADE"
+ password = (sensitive value)
+ payment_type = (known after apply)
+ private_connection_port = "1204"
+ private_ip = (known after apply)
+ qps = (known after apply)
+ resource_group_id = (known after apply)
+ security_ip_group_name = (known after apply)
+ security_ips = [
<redacted>
]
+ status = (known after apply)
+ tags = {
<redacted>
}
+ vpc_auth_mode = "Open"
+ vswitch_id = <redacted>
+ zone_id = <redacted>
+ parameters {
+ name = (known after apply)
+ value = (known after apply)
}
+ timeouts {
+ create = "8h"
+ update = "8h"
}
}
Plan: 1 to add, 0 to change, 0 to destroy.
Changes to Outputs:
+ hostname = (known after apply)
+ id = (known after apply)
+ status = (known after apply)
Do you want to perform these actions?
Terraform will perform the actions described above.
Only 'yes' will be accepted to approve.
Enter a value:
alicloud_kvstore_instance.redis_cache: Creating...
[GLOBAL] - error : Terraform operation failed with error: Command failed with exit code 1: yes yes | terraform -chdir=/usr/app/terraform_workspace apply
2022/06/09 04:34:50 [WARN] Log levels other than TRACE are currently unreliable, and are supported only for backward compatibility.
Use TF_LOG=TRACE to see Terraform's internal logs.
----
2022/06/09 04:34:50 [INFO] Terraform version: 0.14.9
2022/06/09 04:34:50 [INFO] Go runtime version: go1.15.6
2022/06/09 04:34:50 [INFO] CLI args: []string{"/usr/bin/terraform", "-chdir=/usr/app/terraform_workspace", "apply"}
2022/06/09 04:34:50 Loading CLI configuration from /opt/terraform/.tfconfig
2022/06/09 04:34:50 [INFO] TF_CLI_ARGS_apply value: "-no-color"
2022/06/09 04:34:50 [INFO] CLI command args: []string{"apply", "-no-color"}
2022/06/09 04:34:50 [WARN] Log levels other than TRACE are currently unreliable, and are supported only for backward compatibility.
Use TF_LOG=TRACE to see Terraform's internal logs.
----
2022/06/09 04:34:50 [INFO] Failed to read plugin lock file .terraform/plugins/linux_amd64/lock.json: open .terraform/plugins/linux_amd64/lock.json: no such file or directory
2022/06/09 04:34:50 [INFO] backend/local: starting Apply operation
2022-06-09T04:34:50.861Z [INFO] plugin: configuring client automatic mTLS
2022-06-09T04:34:50.948Z [INFO] plugin.terraform-provider-alicloud_v1.170.0: configuring server automatic mTLS: timestamp=2022-06-09T04:34:50.948Z
2022-06-09T04:34:51.060Z [WARN] plugin.stdio: received EOF, stopping recv loop: err="rpc error: code = Unimplemented desc = unknown service plugin.GRPCStdio"
2022/06/09 04:34:51 [INFO] terraform: building graph: GraphTypeValidate
2022-06-09T04:34:51.206Z [INFO] plugin: configuring client automatic mTLS
2022-06-09T04:34:51.294Z [INFO] plugin.terraform-provider-alicloud_v1.170.0: configuring server automatic mTLS: timestamp=2022-06-09T04:34:51.294Z
2022-06-09T04:34:51.400Z [WARN] plugin.stdio: received EOF, stopping recv loop: err="rpc error: code = Unimplemented desc = unknown service plugin.GRPCStdio"
2022/06/09 04:34:51 [INFO] backend/local: apply calling Plan
2022/06/09 04:34:51 [INFO] terraform: building graph: GraphTypePlan
2022-06-09T04:34:51.653Z [INFO] plugin: configuring client automatic mTLS
2022-06-09T04:34:51.738Z [INFO] plugin.terraform-provider-alicloud_v1.170.0: configuring server automatic mTLS: timestamp=2022-06-09T04:34:51.738Z
2022-06-09T04:34:51.844Z [WARN] plugin.stdio: received EOF, stopping recv loop: err="rpc error: code = Unimplemented desc = unknown service plugin.GRPCStdio"
2022/06/09 04:34:52 [WARN] Provider "registry.terraform.io/aliyun/alicloud" produced an invalid plan for alicloud_kvstore_instance.redis_cache, but we are tolerating it because it is using the legacy plugin SDK.
The following problems may be the cause of any confusing errors from downstream operations:
- .auto_renew: planned value cty.False does not match config value cty.NullVal(cty.Bool)
- .vpc_auth_mode: planned value cty.StringVal("Open") does not match config value cty.NullVal(cty.String)
- .order_type: planned value cty.StringVal("UPGRADE") does not match config value cty.NullVal(cty.String)
- .force_upgrade: planned value cty.True does not match config value cty.NullVal(cty.Bool)
- .modify_mode: planned value cty.NumberIntVal(0) does not match config value cty.NullVal(cty.Number)
- .enable_backup_log: planned value cty.NumberIntVal(0) does not match config value cty.NullVal(cty.Number)
- .coupon_no: planned value cty.StringVal("youhuiquan_promotion_option_id_for_blank") does not match config value cty.NullVal(cty.String)
- .parameters: attribute representing nested block must not be unknown itself; set nested attribute values to unknown instead
2022/06/09 04:34:52 [INFO] backend/local: apply calling Apply
2022/06/09 04:34:52 [INFO] terraform: building graph: GraphTypeApply
2022-06-09T04:34:52.037Z [INFO] plugin: configuring client automatic mTLS
2022-06-09T04:34:52.158Z [INFO] plugin.terraform-provider-alicloud_v1.170.0: configuring server automatic mTLS: timestamp=2022-06-09T04:34:52.158Z
2022-06-09T04:34:52.259Z [WARN] plugin.stdio: received EOF, stopping recv loop: err="rpc error: code = Unimplemented desc = unknown service plugin.GRPCStdio"
2022/06/09 04:34:52 [WARN] Provider "registry.terraform.io/aliyun/alicloud" produced an invalid plan for alicloud_kvstore_instance.redis_cache, but we are tolerating it because it is using the legacy plugin SDK.
The following problems may be the cause of any confusing errors from downstream operations:
- .auto_renew: planned value cty.False does not match config value cty.NullVal(cty.Bool)
- .vpc_auth_mode: planned value cty.StringVal("Open") does not match config value cty.NullVal(cty.String)
- .order_type: planned value cty.StringVal("UPGRADE") does not match config value cty.NullVal(cty.String)
- .force_upgrade: planned value cty.True does not match config value cty.NullVal(cty.Bool)
- .modify_mode: planned value cty.NumberIntVal(0) does not match config value cty.NullVal(cty.Number)
- .enable_backup_log: planned value cty.NumberIntVal(0) does not match config value cty.NullVal(cty.Number)
- .coupon_no: planned value cty.StringVal("youhuiquan_promotion_option_id_for_blank") does not match config value cty.NullVal(cty.String)
- .parameters: attribute representing nested block must not be unknown itself; set nested attribute values to unknown instead
Error: [ERROR] terraform-provider-alicloud/alicloud/resource_alicloud_kvstore_instance.go:518: Resource alicloud_kvstore_instance CreateInstance Failed!!! [SDK alibaba-cloud-sdk-go ERROR]:
SDK.ServerError
ErrorCode: InvalidDBInstanceClass.NotFound
Recommend: https://next.api.aliyun.com/troubleshoot?q=InvalidDBInstanceClass.NotFound&product=R-kvstore
RequestId: 4DCEF0E0-091B-3593-A6DF-F33A89667C29
Message: Specified DB instance class is not found.
RespHeaders: map[Access-Control-Allow-Headers:[X-Requested-With, X-Sequence, _aop_secret, _aop_signature, x-acs-action, x-acs-version, x-acs-date, Content-Type] Access-Control-Allow-Methods:[POST, GET, OPTIONS, PUT, DELETE] Access-Control-Allow-Origin:[*] Access-Control-Max-Age:[172800] Connection:[keep-alive] Content-Length:[301] Content-Type:[application/json;charset=utf-8] Date:[Thu, 09 Jun 2022 04:34:55 GMT] X-Acs-Request-Id:[4DCEF0E0-091B-3593-A6DF-F33A89667C29] X-Acs-Trace-Id:[34c9e522377deaa62fffb20eae5216a0]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment