google_logging_billing_account_exclusion

Manages a billing account logging exclusion. For more information see:

Example Usage

resource "google_logging_billing_account_exclusion" "my-exclusion" {
  name            = "my-instance-debug-exclusion"
  billing_account = "ABCDEF-012345-GHIJKL"

  description = "Exclude GCE instance debug logs"

  # Exclude all DEBUG or lower severity messages relating to instances
  filter = "resource.type = gce_instance AND severity <= DEBUG"
}

Argument Reference

The following arguments are supported:

Attributes Reference

In addition to the arguments listed above, the following computed attributes are exported:

Import

Billing account logging exclusions can be imported using their URI, e.g.

In Terraform v1.5.0 and later, use an import block to import billing account logging exclusions using one of the formats above. For example:

import {
  id = "billingAccounts/{{billing_account}}/exclusions/{{name}}"
  to = google_logging_billing_account_exclusion.default
}

When using the terraform import command, billing account logging exclusions can be imported using one of the formats above. For example:

$ terraform import google_logging_billing_account_exclusion.default billingAccounts/{{billing_account}}/exclusions/{{name}}