1 Answer
- Newest
- Most votes
- Most comments
-1
To import JSON flows using the AWS CLI for Amazon Connect without encountering the InvalidContactFlowException:
-
Remove or Update ARNs: The JSON file must not contain ARNs from previous instances. Before using
create-contact-flowvia the CLI, remove or replace these ARNs with ones corresponding to your current environment. -
CLI Command for Importing: Use the following command to import your JSON flow:
aws connect create-contact-flow \ --instance-id <your-instance-id> \ --name <flow-name> \ --type CONTACT_FLOW \ --content file://path_to_your_json_file.json \ --description "flow description"
answered a year ago
Relevant content
- asked 5 years ago
- asked a year ago
- asked a year ago

Really? Are you kidding? Go through 50+ flows and remove and replace? Your smartness strikes me. :-D If I am going to replace everything manually what the f..k do I need the aws connect and entire cloudformation? Plus their Connect Flow Language is as usually undocumented, so can't automate replacing process.
Yeah it’s lacking, but more than likely that’s the issue ARN references which do not match the current instance.
david