AWS connect contact flow error while creating a script

0

Hi, We are trying to create an amazon connect-contact flow using Terraform. We have exported the existing contact flow content in JSON format using AWS CLI and using the exported JSON content in our terraform file to create a new contact flow with a copy of existing as we exported in JSON file. But we are facing an issue with the below error: Please assist

Status code: 400 Problems :"Invalid action property value .Path: Actions[1]. Transition.NextAction"

preguntada hace 2 años585 visualizaciones
1 Respuesta
2
Respuesta aceptada

Hello: The error message is indicating that some Transition in an Action is not properly defined. If you open the JSON file with a code editor you will see one JSON fragment per Action (Connect Block). Let's take a Play Prompt as example. You will see the following code:

  {
      "Identifier": "12345678-1234-1234-1234-123456789012",
      "Parameters": {
        "Text": "Thanks for calling the sample flow!"
      },
      "Transitions": {
        "NextAction": "abcdef-abcd-abcd-abcd-abcdefghijkl",
        "Errors": [],
        "Conditions": []
      },
      "Type": "MessageParticipant"
    }

You can see a Transitions section with a NextAction parameter on it. I suggest to familiarize yourself with the Amazon Connect Flow language here and then open your JSON file to look for the block that is causing this issue. Start with a basic flow (just play prompt and disconnect like this one ) to discard that there are no issues with your terraform template. Best Regards.

Estival
respondido hace 2 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas