Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const pulumi = require("@pulumi/pulumi");
const cloud = require("@pulumi/cloud-aws");
let service = new cloud.Service("pulumi-nginx", {
containers: {
nginx: {
build: "./app",
memory: 512,
ports: [{ port: 80 }],
},
},
replicas: 2,
});
// export just the hostname property of the container frontend
exports.hostname = pulumi.interpolate `http://${service.defaultEndpoint.hostname}`;