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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠