First working hack with updating a resource in the cloud.