terraform-provider-huaweicloud: "huaweicloud_cce_cluster_v3" resources and data always return "Action Forbidden" even with Full Privilges

Description

I’m trying to create a CCE cluster in region cn-south-1. I am an admin on the entire account, I have full privileges and am able to create a CCE cluster from the UI. However when trying to create a CCE cluster through Terraform or even retrieve an existing CCE cluster, I get the following error: data Error: Unable to retrieve clusters: Action Forbidden resource Error: Error creating HuaweiCloud Cluster: Action Forbidden

When trying to do the same action in a different region - ap-southeast-1 everything works.

Debug info

2020/05/27 17:40:04 [WARN] Provider "registry.terraform.io/-/huaweicloud" produced an invalid plan for huaweicloud_cce_cluster_v3.cce-cluster, 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:
      - .authentication_mode: planned value cty.StringVal("x509") does not match config value cty.NullVal(cty.String)
huaweicloud_cce_cluster_v3.cce-cluster: Creating...
2020/05/27 17:40:04 [DEBUG] huaweicloud_cce_cluster_v3.cce-cluster: applying the planned Create change
2020-05-27T17:40:04.268+0300 [DEBUG] plugin.terraform-provider-huaweicloud_v1.14.0_x4: 2020/05/27 17:40:04 [DEBUG] setting computed for "certificate_clusters" from ComputedKeys
2020-05-27T17:40:04.268+0300 [DEBUG] plugin.terraform-provider-huaweicloud_v1.14.0_x4: 2020/05/27 17:40:04 [DEBUG] setting computed for "certificate_users" from ComputedKeys
2020-05-27T17:40:04.268+0300 [DEBUG] plugin.terraform-provider-huaweicloud_v1.14.0_x4: 2020/05/27 17:40:04 [DEBUG] HuaweiCloud Region is: cn-south-1
2020/05/27 17:40:07 [DEBUG] huaweicloud_cce_cluster_v3.cce-cluster: apply errored, but we're indicating that via the Error pointer rather than returning it: Error creating HuaweiCloud Cluster: Action Forbidden
2020/05/27 17:40:07 [ERROR] <root>: eval: *terraform.EvalApplyPost, err: Error creating HuaweiCloud Cluster: Action Forbidden
2020/05/27 17:40:07 [ERROR] <root>: eval: *terraform.EvalSequence, err: Error creating HuaweiCloud Cluster: Action Forbidden

Error: Error creating HuaweiCloud Cluster: Action Forbidden

  on main.tf line 55, in resource "huaweicloud_cce_cluster_v3" "cce-cluster":
  55: resource "huaweicloud_cce_cluster_v3" "cce-cluster" {

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 1
  • Comments: 23 (11 by maintainers)

Most upvoted comments

@barucoh just want to check if we use a wrong URL on terraform side šŸ˜„