-
Notifications
You must be signed in to change notification settings - Fork 0
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
[ENG-956] A Firestore module #1
Conversation
2d7bb35
to
283bac6
Compare
Chosing not to allow the backup variable to have a default to force module users to at least think about backups when implementing.
283bac6
to
b0fe463
Compare
@@ -0,0 +1,42 @@ | |||
# Google Cloud Firestore |
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.
Do you think inputs and outputs would be useful here to see all parameters?
Terraform Docs which would show ins/outs specifically and is generated automagically: https://github.com/terraform-docs/terraform-docs
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.
Personally I prefer things in one place. I would expect people to read the code, it's not that hard for a developer.
We don't have a pipeline to build docs. If we find there is a need for them later we can add that but that just feels like bloat/complexity atm.
|
||
locals { | ||
index_records = { | ||
for i in var.indexes : join("_", concat([i.collection], i.fields[*].path)) => i |
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.
Would +
be better here rather than concat
? I think this should work:
locals {
index_records = {
for i in var.indexes : join("_", [i.collection] + i.fields[*].path) => i
}
}
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.
🤷♀️ it feels totally subjective to me.
Description
Issue(s)
ENG-956
How to test
Checklist