Import Contact Flow via CLI or UI

0

Has anyone found that using the import/export of a contact flow works but to export a contact flow and then use the AWS CLI create-contact-flow to import it into another environment I received an application exception.

It looks like the CLI/API expect a different json format compared to the export/import which may make adding this step to a pipeline difficult.

Any views/feedback would be welcome

m66rus
已提问 3 年前458 查看次数
3 回答
0

So the export/import format of the JSON is different from the UI so you cannot use the AWS CLI/ Connect API to import the file.

So you need to use the describe-contact-flow CLI/API to get the correctly formatted JSON and then use the create/update contact flow CLI/API for it to work. It will not work by using the UI Import facility.

m66rus
已回答 3 年前
0

m66rus wrote:
So you need to use the describe-contact-flow CLI/API to get the correctly formatted JSON and then use the create/update contact flow CLI/API for it to work. It will not work by using the UI Import facility.

That won't work across instances either since the ARNs for all prompts, flows, queues etc. will be different in the described flow vs the created/updated flow (they differ across instances). So you need to list all prompts, flows, queues, lambdas in each instance then match them up somehow (e.g. by Name), then replace all ARNs in the flow JSON with the corresponding resource ARNs from the instance you are updating

已回答 3 年前
0

Yes you are correct, the ARN need parsing but I was having an issue just getting it to import but found that I was wasn't handling the format of the contents attribute. In terms of replacing the ARN i am working on a script to replace those.

m66rus
已回答 3 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则