Script to patch and update existing ami in cloud