-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import google_firestore_index skips important attributes #5588
import google_firestore_index skips important attributes #5588
Comments
@c2thorn After import, I see null for both fields
But I do see something in both fields in
|
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks! |
Community Note
modular-magician
user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If an issue is assigned to a user, that user is claiming responsibility for the issue. If an issue is assigned tohashibot
, a community member has claimed the issue already.Terraform Version
Affected Resource(s)
Terraform Configuration Files
Debug Output
terraform import: https://gist.github.com/filipzyzniewski-fexco/1ef4b69786823491ed9df484f7530a37
subsequent terraform plan: https://gist.github.com/filipzyzniewski-fexco/b9e215ab40187cc5fc764799a18f5ccf
Expected Behavior
importing a google_firestore_index should set its collection and database attributes based on the components of its attribute name:
projects/someproject/databases/(default)/collectionGroups/somecollection/indexes/CICAgPi_lZUK => database = "(default)", collection = "somecollection"
terraform plan should report no changes after importing the example index.
Actual Behavior
As shown in https://gist.github.com/filipzyzniewski-fexco/b9e215ab40187cc5fc764799a18f5ccf
Steps to Reproduce
terraform import 'google_firestore_index.someindex' 'projects/someproject/databases/(default)/collectionGroups/somecollection/indexes/CICAgPi_lZUK'
terraform plan
Important Factoids
A Python script that I use to fix the state after importing: https://gist.github.com/filipzyzniewski-fexco/eca5e3ad86793a9de33ab73ab6e22f14
After using the script: https://gist.github.com/filipzyzniewski-fexco/06d46ab91b766a0f5d10c7ae77c95627
The text was updated successfully, but these errors were encountered: