Genesyscloud_routing_queue is not completing the terraform execution

Hi Team

Currently, I am trying to create a Queue with the following Details

main.tf

provider "genesyscloud" {
  oauthclient_id     = "bXXX"
  oauthclient_secret = "6XXXXXX"
  aws_region         = "ap-southeast-2"
}

resource "genesyscloud_routing_queue" "Queues" {
  for_each                 = var.classifier_queue_members
  name                     = each.value["queue_name"]
  description              = "${each.value["queue_name"]} questions and answers"
  division_id              = "8a23XXXXX"
  acw_wrapup_prompt                 = "OPTIONAL"
  acw_timeout_ms                    = 300000
  auto_answer_only                  = false
  
  media_settings_call {
    alerting_timeout_sec      = 30
    service_level_percentage  = 0.8
    service_level_duration_ms = 20000
  }
 members {
    user_id  = each.value["user_id"]
  }
}

variable.tf

variable "classifier_queue_members" {
  type = map(object({
    queue_name     = string
    user_id = string
  }))
  default = {
    "first" = {
      queue_name     = "testing_queue"
      user_id        = "a3fe4168-bdc5-4ff6-b256-25627bdab27b"
    }
  }
}

The output that is coming is as below

genesyscloud_routing_queue.Queues["first"]: Creating...
genesyscloud_routing_queue.Queues["first"]: Still creating... [10s elapsed] 
genesyscloud_routing_queue.Queues["first"]: Still creating... [20s elapsed]. 
genesyscloud_routing_queue.Queues["first"]: Still creating... [30s elapsed]

Even though I can see the Queue being created successfully. Any help would be appreciated.

Cheers
Sam

Hi Sam,

Ensure that you are using the latest version (1.4.0).
You can set TF_LOG to INFO in your console. This will provide more verbose logging to help debug the issue.

Thanks Ronan.
I am getting this error post adding the Trace. I am just wondering why I need to add these parameters as they are not mandatory fields

2022-07-30T00:36:26.254+1000 [TRACE] provider.terraform-provider-genesyscloud_v1.4.0: Served request: tf_resource_type=genesyscloud_routing_queue @caller=github.com/hashicorp/terraform-plugin-go@v0.9.1/tfprotov5/tf5server/server.go:791 @module=sdk.proto tf_provider_addr=provider tf_req_id=0dfe94cc-6c71-2c31-76f5-d119f104c156 tf_rpc=PlanResourceChange tf_proto_version=5.2 timestamp=2022-07-30T00:36:26.254+1000
2022-07-30T00:36:26.254+1000 [WARN]  Provider "registry.terraform.io/mypurecloud/genesyscloud" produced an invalid plan for genesyscloud_routing_queue.Queues["first"], 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:
      - .members: planned value cty.SetVal([]cty.Value{cty.ObjectVal(map[string]cty.Value{"ring_num":cty.NumberIntVal(1), "user_id":cty.StringVal("a3fe4168-bdc5-4ff6-b256-25627bdab27b")})}) does not match config value cty.SetVal([]cty.Value{cty.ObjectVal(map[string]cty.Value{"ring_num":cty.NullVal(cty.Number), "user_id":cty.StringVal("a3fe4168-bdc5-4ff6-b256-25627bdab27b")})})
      - .media_settings_message: attribute representing nested block must not be unknown itself; set nested attribute values to unknown instead
      - .media_settings_social: attribute representing nested block must not be unknown itself; set nested attribute values to unknown instead
      - .media_settings_video: attribute representing nested block must not be unknown itself; set nested attribute values to unknown instead
      - .media_settings_call: attribute representing nested block must not be unknown itself; set nested attribute values to unknown instead
      - .media_settings_chat: attribute representing nested block must not be unknown itself; set nested attribute values to unknown instead
      - .media_settings_email: attribute representing nested block must not be unknown itself; set nested attribute values to unknown instead
      - .media_settings_callback: attribute representing nested block must not be unknown itself; set nested attribute values to unknown instead

Hi,

Those are warnings and can safely be ignored.
Does the creation attempt error out if you leave it running for a few minutes, e.g. 5 or 10 minutes?

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.