sparse-intern-71089
09/04/2020, 6:49 PMchilly-hairdresser-56259
09/04/2020, 7:49 PMincalculable-portugal-13011
09/05/2020, 12:36 AMlet myAppServiceRegistryService = new aws.servicediscovery.Service("myApp", {
dnsConfig: {
namespaceId: nodeServiceDiscoveryNamespace.id,
dnsRecords: [{
ttl: 10,
type: "A"
}],
routingPolicy: "MULTIVALUE"
}
});
let myAppFargateService = new awsx.ecs.FargateService("myApp", {
...
serviceRegistries: {
registryArn: myServiceRegistry.arn,
containerName: myAppServiceRegistryService
}
});
new awsx.ecs.FargateService("myOtherService", {
...
taskDefinitionArgs: {
containers: {
[`${serviceName}`]: {
environment: [{
name: "APP_HOSTNAME",
value: aws.servicediscovery.Service.get(myAppFargateService.name, myAppFargateService.id)
}]
}
}
}
});
chilly-hairdresser-56259
09/05/2020, 2:29 AMOutput.All().Apply()
or not, that you may have to mess with on the the pulumi preview
.