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

resource_alicloud_resource_manager_resource_share cannot provision in cn-hongkong errorCode:"InvalidRegionId" #787

Open
hayorov opened this issue Aug 5, 2021 · 0 comments

Comments

@hayorov
Copy link

hayorov commented Aug 5, 2021

Unable to create resource_alicloud_resource_manager_resource_share resource in cn-hongkong region.

Error

Error: [ERROR] terraform-provider-alicloud/alicloud/resource_alicloud_resource_manager_resource_share.go:50:
Describe ressharing endpoint using region: "cn-hongkong" got an error: &errors.ServerError{httpStatus:404, requestId:"92D7FB84-D4B9-30A5-8D6F-96190E4CFD87", hostId:"location-readonly.aliyuncs.com", errorCode:"InvalidRegionId", recommend:"https://error-center.aliyun.com/status/search?Keyword=InvalidRegionId&source=PopGw", message:"The specified region does not exist.", comment:""}.

  with alicloud_resource_manager_resource_share.secondary,
  on network.tf line 21, in resource "alicloud_resource_manager_resource_share" "secondary":
  21: resource "alicloud_resource_manager_resource_share" "secondary" {

2021-08-05T08:48:46.394Z [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/hashicorp/alicloud/1.129.0/linux_amd64/terraform-provider-alicloud_v1.129.0 pid=6687
2021-08-05T08:48:46.395Z [DEBUG] provider: plugin exited
resource "alicloud_resource_manager_resource_share" "secondary2" {
  resource_share_name = "XXX"
  provider = alicloud.infra_shared_secondary_region
}

provider "alicloud" {
  access_key = jsondecode(chomp(file(".provider_access"))).access_key
  secret_key = jsondecode(chomp(file(".provider_access"))).secret_key
  region     = "cn-hongkong"
  assume_role {
    role_arn = "acs:ram::XXX:role/resourcedirectoryaccountaccessrole"
  }
  alias      = "infra_shared_secondary_region"
}

Version

v1.129.0

Extra

Works for Singapore region.

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