colossal-room-15708
09/21/2019, 7:51 AMpulumi preview
right after it successfully deployed the stack and it's now saying that it wants to replace the cosmosDB database. Why is that?
Looks like this all starts because the consistencyPolicy
needs updating?!
cosmos_db_account = Account(
"cosmosdbaccount",
consistency_policy={
"consistencyLevel": "Strong",
"maxIntervalInSeconds": 5,
"maxStalenessPrefix": 10
},
geo_locations=[
{
"location": resource_group.location,
"failoverPriority":0
}
],
kind="GlobalDocumentDB",
location=resource_group.location,
offer_type="Standard",
resource_group_name=resource_group.name
)
I check the consistency setting in the Azure portal and it shows that it's set to "Strong", so no idea why pulumi thinks it has to reconfigure it to "Strong" and then replace all the other resources.
When I execute pulumi up
it applies a change to cosmosDB, not to any of the other resources it said it would. Once done, I can run pulumi preview
again and I get the same output as before where pulumi thinks it has to update and even replace multiple resources.tall-librarian-49374
09/21/2019, 8:11 AMbig-piano-35669
tall-librarian-49374
09/23/2019, 6:35 AMmaxStalenessPrefix: 100 => 10
. I believe maxStalenessPrefix
has no meaning for the strong consistency, so it's just reported as default 100
while we try to set it it 10
. You should change your code to
consistency_policy={
"consistencyLevel": "Strong"
},
colossal-room-15708
09/23/2019, 11:17 AM