google_certificate_manager_trust_config

TrustConfig represents a resource that represents your Public Key Infrastructure (PKI) configuration in Certificate Manager for use in mutual TLS authentication scenarios.

To get more information about TrustConfig, see:

Open in Cloud Shell

Example Usage - Certificate Manager Trust Config

resource "google_certificate_manager_trust_config" "default" {
  name        = "trust-config"
  description = "sample description for the trust config"
  location    = "us-central1"

  trust_stores {
    trust_anchors { 
      pem_certificate = file("test-fixtures/cert.pem")
    }
    intermediate_cas { 
      pem_certificate = file("test-fixtures/cert.pem")
    }
  }

  labels = {
    foo = "bar"
  }
}

Argument Reference

The following arguments are supported:


The trust_stores block supports:

The trust_anchors block supports:

The intermediate_cas block supports:

Attributes Reference

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

Timeouts

This resource provides the following Timeouts configuration options:

Import

TrustConfig can be imported using any of these accepted formats:

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

import {
  id = "projects/{{project}}/locations/{{location}}/trustConfigs/{{name}}"
  to = google_certificate_manager_trust_config.default
}

When using the terraform import command, TrustConfig can be imported using one of the formats above. For example:

$ terraform import google_certificate_manager_trust_config.default projects/{{project}}/locations/{{location}}/trustConfigs/{{name}}
$ terraform import google_certificate_manager_trust_config.default {{project}}/{{location}}/{{name}}
$ terraform import google_certificate_manager_trust_config.default {{location}}/{{name}}

User Project Overrides

This resource supports User Project Overrides.