moved generic code into graphviz-aws.sh file