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"

已提問 2 年前檢視次數 585 次
1 個回答
2
已接受的答案

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
已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南