Google Cloud Bigtable GC Policy

This page shows how to write Terraform for Cloud Bigtable GC Policy and write them securely.

google_bigtable_gc_policy (Terraform)

The GC Policy in Cloud Bigtable can be configured in Terraform with the resource name google_bigtable_gc_policy. The following sections describe how to use the resource and its parameters.

Example Usage from GitHub

An example could not be found in GitHub.

Review your Terraform file for Google best practices

Shisho Cloud, our free checker to make sure your Terraform configuration follows best practices, is available (beta).


The name of the column family.

The name of the Bigtable instance.

If multiple policies are set, you should choose between UNION OR INTERSECTION.

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

The name of the table.

  • max_age list block
    • days optional computed - number

    Number of days before applying GC policy.

    Duration before applying GC policy

  • max_version list block

    Number of version before applying the GC policy.

Explanation in Terraform Registry

Creates a Google Cloud Bigtable GC Policy inside a family. For more information see the official documentation and API.

Frequently asked questions

What is Google Cloud Bigtable GC Policy?

Google Cloud Bigtable GC Policy is a resource for Cloud Bigtable of Google Cloud Platform. Settings can be wrote in Terraform.


Automate config file reviews on your commits

Fix issues in your infrastructure as code with auto-generated patches.