Make logger and ec2 as part of application unit