mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-09-06 17:16:44 +00:00
1.5 KiB
1.5 KiB
layout | page_title | sidebar_current | description |
---|---|---|---|
Google: google_kms_key_ring | docs-google-datasource-kms-key-ring | Provides access to KMS key ring data with Google Cloud KMS. |
google_kms_key_ring
Provides access to Google Cloud Platform KMS KeyRing. For more information see the official documentation and API.
A KeyRing is a grouping of CryptoKeys for organizational purposes. A KeyRing belongs to a Google Cloud Platform Project and resides in a specific location.
Example Usage
data "google_kms_key_ring" "my_key_ring" {
name = "my-key-ring"
location = "us-central1"
}
Argument Reference
The following arguments are supported:
-
name
- (Required) The KeyRing's name. A KeyRing name must exist within the provided location and match the regular expression[a-zA-Z0-9_-]{1,63}
-
location
- (Required) The Google Cloud Platform location for the KeyRing. A full list of valid locations can be found by runninggcloud kms locations list
.
project
- (Optional) The project in which the resource belongs. If it is not provided, the provider project is used.
Attributes Reference
In addition to the arguments listed above, the following computed attributes are exported:
self_link
- The self link of the created KeyRing. Its format isprojects/{projectId}/locations/{location}/keyRings/{keyRingName}
.