script to generate public ec2 ami