#!/bin/zsh

#arn:aws:states:us-east-1:437795906767:stateMachine:qa-nr-ownership-ingestion


echo "\nThis will invoke the state machine for ownership ingestion, using the roc-examples.csv file in S3\n"

awsume prod

echo "\nEnter a name you can recognise in the aws console e.g. rcs-test-1  - please avoid spaces and difficult characters\n"

read NAME

echo "\nusing $NAME\n"

aws stepfunctions start-execution --state-machine-arn arn:aws:states:us-east-1:437795906767:stateMachine:qa-nr-ownership-ingestion --name $NAME --input file://ownership-ingestion.json
