Working ec2 bootstrap script for ec2 environment