-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Add tags
field to Firestore Database resource.
#13670
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
base: main
Are you sure you want to change the base?
Add tags
field to Firestore Database resource.
#13670
Conversation
Hello! I am a robot. Tests will require approval from a repository maintainer to run. Googlers: see go/terraform-auto-test-runs to set up automatic test runs. @SirGitsalot, a repository maintainer, has been assigned to review your changes. If you have not received review feedback within 2 business days, please leave a comment on this PR asking them to take a look. You can help make sure that review is quick by doing a self-review and by running impacted tests locally. |
{"123/environment" : "tagValues/444"} | ||
Inconsistent format is not supported. | ||
For example, the following is invalid. | ||
{"tagKeys/333" : "tagValues/444", "123/env" : "prod"} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you also add the text from mmv1/products/filestore/Instance.yaml - it's pertinent to Terraform users
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I copied most of the text from filestore/instance.yaml, but I think their description to the format is not completely correct. Based on tags, I think we can take 2 different formats (1) tagKeys/key_id: tagValues/value_id (2) namespacedName of key: short name of value. (They cannot be mixed up in the map.)
This commit adds support for the
tags
field to the Firestore Database resource. Thetags
field is amap<string, string>
. This allows users to perform database actions and setting tag bindings at the same time.