Skip to main content

Triage and Remediation

Remediation

Using Console

To remediate the misconfiguration of Bigtable Cluster Tables should have timestamp granularity set to 1ms in GCP using GCP console, follow these steps:
  1. Open the GCP console and navigate to the Cloud Bigtable section.
  2. Select the Bigtable instance that you want to remediate.
  3. In the left navigation pane, click on the “Tables” option.
  4. Select the table that you want to remediate and click on the “Edit” button.
  5. Scroll down to the “Column families” section and click on the column family that contains the timestamp column.
  6. In the “Column family” settings, set the “Timestamp granularity” to “Milliseconds”.
  7. Click on the “Save” button to apply the changes.
  8. Repeat steps 4-7 for all the tables in the Bigtable instance that have timestamp columns.
By following these steps, you will remediate the misconfiguration of Bigtable Cluster Tables should have timestamp granularity set to 1ms in GCP using GCP console.

To remediate the misconfiguration of Bigtable Cluster Tables having timestamp granularity set to 1ms in GCP using GCP CLI, follow these steps:
  1. Open the terminal and ensure that you have the latest version of the Google Cloud SDK installed.
  2. Authenticate yourself with the GCP CLI by running the following command:
  1. Set the default project for the CLI by running the following command:
Replace PROJECT_ID with the ID of the project where your Bigtable Cluster is located.
  1. Run the following command to update the timestamp granularity of your Bigtable Cluster:
Replace CLUSTER_NAME, CLUSTER_ID, and INSTANCE_NAME with the respective names of your Bigtable Cluster, Cluster ID, and Instance.
  1. Verify that the timestamp granularity has been set to 1ms by running the following command:
This command will display the details of your Bigtable Cluster, including the timestamp granularity.By following these steps, you can remediate the misconfiguration of Bigtable Cluster Tables having timestamp granularity set to 1ms in GCP using GCP CLI.
To remediate the Bigtable Cluster Tables Timestamp Granularity issue in GCP using Python, you can follow these steps:
  1. Install the google-cloud-bigtable library using pip:
  1. Import the required libraries:
  1. Create a bigtable.Client object and a bigtable.Table object:
  1. Get the column family and update the timestamp granularity:
  1. Confirm that the column family has been updated:
This should remediate the Bigtable Cluster Tables Timestamp Granularity issue in GCP using Python.
Changing granularity on an existing google_bigtable_table forces replacement of the table (the underlying API treats this as immutable), which will delete and recreate the table and its data; plan and migrate data accordingly before applying.To verify, terraform plan should show a ~ or +/- change on the google_bigtable_table resource where granularity is set to "MILLIS" (or a new table created with that value if it was previously unmanaged).