More Info:

Ensure that index state of Firestore is not NEEDS_REPAIR

Risk Level

Medium

Address

Operational Maturity, Security

Compliance Standards

CBP

Triage and Remediation

Remediation

To remediate the “Cloud Firestore Index State Should Be READY or CREATING” misconfiguration for GCP using the GCP console, please follow these steps:

  1. Open the GCP console and select the project that contains the Firestore instance with the misconfigured index.

  2. Navigate to the Firestore instance that has the misconfigured index.

  3. Click on the “Indexes” tab in the Firestore console.

  4. Look for the index that has the status “ERROR”. This index needs to be remediated.

  5. Click on the index that has the status “ERROR” to open the details page.

  6. On the details page, click on the “Edit” button.

  7. Review the index definition and make any necessary changes to ensure it is valid.

  8. Click on the “Save” button to save the changes.

  9. Wait for the index to be reprocessed. This may take some time depending on the size of your Firestore instance and the number of documents in it.

  10. Once the index is in the “READY” or “CREATING” state, the misconfiguration is remediated.

Additional Reading: