incalculable-portugal-13011
09/07/2020, 5:33 PMlet myFirstServiceRegistryService = new aws.servicediscovery.Service("myFirstFargateService", {
dnsConfig: {
namespaceId: nodeServiceDiscoveryNamespace.id,
dnsRecords: [{
ttl: 10,
type: "A"
}],
routingPolicy: "MULTIVALUE"
}
});
let myFirstFargateService = new awsx.ecs.FargateService("myFirstFargateService", {
...
serviceRegistries: {
registryArn: myServiceRegistry.arn,
containerName: myAppServiceRegistryService
}
});
let mySecondFargateService = new awsx.ecs.FargateService("mySecondFargateService", {
...
taskDefinitionArgs: {
containers: {
mySecondFargateService: {
environment: [{
name: "APP_HOSTNAME",
value: myAppFArgateService HOSTNAME GOES HERE
}]
}
}
}
});
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by