See Medium post here:
Useful bash script for automating install of Anaconda on AWS EC2 using CloudFormation