Creates the necessary directories on EC2.