bootstrap logic for aws ec2