Generating command line code for load balancing and auto scaling