Legacy Dev Forum Posts

 View Only

Sign Up

Genesyscloud_routing_queue is not completing the terraform execution

  • 1.  Genesyscloud_routing_queue is not completing the terraform execution

    Posted 06-05-2025 19:18

    anon72246940 | 2022-07-29 12:27:27 UTC | #1

    Hi Team

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

    main.tf

    provider "genesyscloud" { oauthclientid = "bXXX" oauthclientsecret = "6XXXXXX" aws_region = "ap-southeast-2" }

    resource "genesyscloudroutingqueue" "Queues" { foreach = var.classifierqueuemembers name = each.value["queuename"] description = "${each.value["queuename"]} questions and answers" divisionid = "8a23XXXXX" acwwrapupprompt = "OPTIONAL" acwtimeoutms = 300000 autoansweronly = false

    mediasettingscall { alertingtimeoutsec = 30 servicelevelpercentage = 0.8 serviceleveldurationms = 20000 } members { userid = each.value["user_id"] } }

    variable.tf

    variable "classifierqueuemembers" { type = map(object({ queuename = string userid = string })) default = { "first" = { queuename = "testingqueue" user_id = "a3fe4168-bdc5-4ff6-b256-25627bdab27b" } } }

    The output that is coming is as below

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

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

    Cheers Sam


    anon11147534 | 2022-07-29 13:18:42 UTC | #2

    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.


    anon72246940 | 2022-07-29 14:47:28 UTC | #3

    anon11147534, post:2, topic:15737
    TF_LOG

    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-genesyscloudv1.4.0: Served request: tfresourcetype=genesyscloudroutingqueue @caller=github.com/hashicorp/terraform-plugin-go@v0.9.1/tfprotov5/tf5server/server.go:791 @module=sdk.proto tfprovideraddr=provider tfreqid=0dfe94cc-6c71-2c31-76f5-d119f104c156 tfrpc=PlanResourceChange tfprotoversion=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 genesyscloudroutingqueue.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{"ringnum":cty.NumberIntVal(1), "userid":cty.StringVal("a3fe4168-bdc5-4ff6-b256-25627bdab27b")})}) does not match config value cty.SetVal([]cty.Value{cty.ObjectVal(map[string]cty.Value{"ringnum":cty.NullVal(cty.Number), "userid":cty.StringVal("a3fe4168-bdc5-4ff6-b256-25627bdab27b")})})
              • .mediasettingsmessage: attribute representing nested block must not be unknown itself; set nested attribute values to unknown instead
              • .mediasettingssocial: attribute representing nested block must not be unknown itself; set nested attribute values to unknown instead
              • .mediasettingsvideo: attribute representing nested block must not be unknown itself; set nested attribute values to unknown instead
              • .mediasettingscall: attribute representing nested block must not be unknown itself; set nested attribute values to unknown instead
              • .mediasettingschat: attribute representing nested block must not be unknown itself; set nested attribute values to unknown instead
              • .mediasettingsemail: attribute representing nested block must not be unknown itself; set nested attribute values to unknown instead
              • .mediasettingscallback: attribute representing nested block must not be unknown itself; set nested attribute values to unknown instead

    anon11147534 | 2022-08-03 11:43:17 UTC | #4

    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?


    system | 2022-09-03 11:43:26 UTC | #5

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


    This post was migrated from the old Developer Forum.

    ref: 15737