Watch this video on YouTube
Quick tutorial to install AWS CLI and Git on EC2 using a user data script and a simple S3 example for automated setup