back
terraform {
required_providers {
google-beta = ">= 3.63.0"
}
}
top
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
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
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
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