Skip to content

Latest commit

 

History

History
96 lines (73 loc) · 1.63 KB

File metadata and controls

96 lines (73 loc) · 1.63 KB

google_kms_key_ring

back

Index

Terraform

terraform {
  required_providers {
    google-beta = ">= 3.63.0"
  }
}

top

Example Usage

module "google_kms_key_ring" {
  source = "./modules/google-beta/d/google_kms_key_ring"

  # location - (required) is a type of string
  location = null
  # name - (required) is a type of string
  name = null
  # project - (optional) is a type of string
  project = null
}

top

Variables

variable "location" {
  description = "(required) - The location for the KeyRing.\nA full list of valid locations can be found by running 'gcloud kms locations list'."
  type        = string
}

variable "name" {
  description = "(required) - The resource name for the KeyRing."
  type        = string
}

variable "project" {
  description = "(optional)"
  type        = string
  default     = null
}

top

Datasource

data "google_kms_key_ring" "this" {
  # location - (required) is a type of string
  location = var.location
  # name - (required) is a type of string
  name = var.name
  # project - (optional) is a type of string
  project = var.project
}

top

Outputs

output "id" {
  description = "returns a string"
  value       = data.google_kms_key_ring.this.id
}

output "self_link" {
  description = "returns a string"
  value       = data.google_kms_key_ring.this.self_link
}

output "this" {
  value = google_kms_key_ring.this
}

top