Skip to content

Conversation

@AkshayKalbhor
Copy link
Contributor

Implemented code for enhancement#93 .

Please let me know if I am missing anything.

@bgood bgood self-requested a review May 18, 2023 14:06
Copy link
Collaborator

@bgood bgood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the PR!

}

resource "google_firestore_database" "database" {
count = var.terraform_firestore_create ? 1 : 0
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this is in the Terraform module for Firestore, wouldn't using the module indicate we want to create the Firestore database. Also choosing to not create the database while using the module would break the setup, correct?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello,

thanks for the review,
I sort of agree with you but if we do not provide an option then we will end up forcing the user to use Firestore. What in case if the user wants to use Spanner to store the Autoscaler state?
Should we still create the Firestore db as a default setup and let the user use Spanner without utilizing the provisioned Firestore db?

Let me know if my understanding is not accurate.

Thanks!

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Previously, if the user wanted to store state in Spanner the documentation instructed them to skip the gcloud command to create the Firestore database. Now with the module users in that situation should just not include the Firestore module in their Terraform.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants