setup script for EC2 instance from startup class