Closed wvanderdeijl closed 2 months ago
Should this be included in #1936 ?
This permadiff does not happen when there are actual indices defined, for example:
indexConfig: {
indexes: [{ queryScope: 'COLLECTION', order: 'ASCENDING' }],
},
Specifying an explicit empty indexes
array does not fix the issue and still gives a permadiff:
indexConfig: {
indexes: [],
},
Thanks for reporting this one too @wvanderdeijl!
We've got a fix incoming in https://github.com/pulumi/pulumi-gcp/pull/2182
This issue has been addressed in PR #2182 and shipped in release v7.31.0.
Describe what happened
When you do not want any indexes that are normally created for a field, you should specify an empty
indexConfig
block for a gcp.firestore.Field resource. Also see the Firestore Field Timestamp example at https://www.pulumi.com/registry/packages/gcp/api-docs/firestore/field/#firestore-field-timestampThis works as expected when creating the resource and the GCP console shows that the normal single field indices are disabled. But every subsequent
pulumi up
orpulumi preview
shows that pulumi want to update the resource again to non indexConfig. Performing the actual update doesn't change anything in the GCP console, but every consequentpulumi up
orpulumi preview
keeps showing the planned change.Sample program
Log output
pulumi preview --diff
Affected Resource(s)
gcp.firestore.Field
Output of
pulumi about
n/a
Additional context
We did not have this issue with @pulumi/gcp version 6.67.0. We have not tested any of the versions between 6.67.0 and 7.30.1
Contributing
Vote on this issue by adding a 👍 reaction. To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).