1. A method comprising: deploying, with a device of a private network, an application instance to a public cloud with an application web service in a cloud network, wherein the deploying is using a deployment script defined in a machine image of the device for the application instance, and wherein the machine image when started causes application credentials to be passed to the application instance; and using at least the application credentials, communicating with the application web service in the cloud network to establish a trust relationship with the application web service for the application instance.