google_kms_key_ring

A KeyRing is a toplevel logical grouping of CryptoKeys.

To get more information about KeyRing, see:

Example Usage - Kms Key Ring Basic

resource "google_kms_key_ring" "example-keyring" {
  name     = "keyring-example"
  location = "global"
}

Argument Reference

The following arguments are supported:


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

KeyRing can be imported using any of these accepted formats:

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

import {
  id = "projects/{{project}}/locations/{{location}}/keyRings/{{name}}"
  to = google_kms_key_ring.default
}

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

$ terraform import google_kms_key_ring.default projects/{{project}}/locations/{{location}}/keyRings/{{name}}
$ terraform import google_kms_key_ring.default {{project}}/{{location}}/{{name}}
$ terraform import google_kms_key_ring.default {{location}}/{{name}}

User Project Overrides

This resource supports User Project Overrides.