dazzling-rose-37445
03/04/2020, 10:24 AMconst gcosmos = new azure.cosmosdb.Account(config.globalCosmosDb.name,
{
name: config.globalCosmosDb.name,
resourceGroupName: resourceGroup.name,
location: "northeurope",
offerType: "Standard",
geoLocations: [...config.globalCosmosDb.regions],
consistencyPolicy: { consistencyLevel: "Session" }
}
);
And the config in my stack yaml file:
regions:
- location: "North Europe"
failoverPriority: 0
- location: "West US"
failoverPriority: 1
- location: "Southeast Asia"
failoverPriority: 2
The problem is that if I change my config to add a new region, like:
regions:
- location: "North Europe"
failoverPriority: 0
- location: "West US"
failoverPriority: 1
- location: "Southeast Asia"
failoverPriority: 2
- location: "Canada East"
failoverPriority: 3
My pulumi up
deletes my cosmosDb and creates again instead of just updating the geolocations property, like in the image.
Am I doing something wrong? 🤔better-rainbow-14549
03/04/2020, 1:10 PMtall-librarian-49374
03/04/2020, 3:28 PMdazzling-rose-37445
03/04/2020, 4:12 PM