All Products
Search
Document Center

:An error is returned when you use Terraform to create resources in Heyuan ACDR Auto region

Last Updated:Mar 12, 2025

When you use Terraform to create a queue, topic, or subscription in Heyuan ACDR Auto region (regionId: cn-heyuan-acdr-1), the codes are as follows:

provider "alicloud" {
  skip_region_validation = true
  region     = "cn-heyuan-acdr-1"
  access_key = "${your accessKey}"
  secret_key = "${your secretKey}"
}

resource "alicloud_message_service_topic" "default" {
  topic_name       = "tf-topic"
  max_message_size = 1024
  logging_enabled  = false
}

resource "alicloud_message_service_queue" "default" {
  polling_wait_seconds     = "10"
  message_retention_period = "86400"
  maximum_message_size     = "65535"
  visibility_timeout       = "30"
  queue_name               = "tf-queue"
}

If an error occurs or the command execution stalls, check the provider section in your Terraform code. If the endpoint of Simple Message Queue (SMQ, formerly MNS) is included in the provider section, remove the endpoint before you re-execute your code.