import * as cloud from "@pulumi/cloud" ; import { Output } from "@pulumi/pulumi" ; let nginx = new cloud . Service ( "examples-nginx2" , { containers : { nginx : { build : "./app" , memory : 128 , ports : [ { port : 80 , protocol : "http" } ] , } , } , replicas : 2 , } ) ; export let nginxEndpoint = nginx . defaultEndpoint . apply ( ep => `http://${ ep . hostname }:${ ep . port }` ) ;