All Modules
GCPSecurity

Cloud KMS

Key ring and crypto key with auto-rotation and IAM bindings

Usage

module "cloud_kms" {
  source = "github.com/fencepencil/gcp-modules//cloud-kms"

  project_id = "<project_id>"
  location = "<location>"
  key_ring_name = "<key_ring_name>"
  key_name = "<key_name>"

  tags = var.tags
}

Inputs (6)

NameTypeDescriptionDefaultRequired
project_idstringGCP project IDyes
locationstringKey ring locationyes
key_ring_namestringKey ring nameyes
key_namestringCrypto key nameyes
rotation_periodstringRotation period7776000sno
protection_levelstringProtection level (SOFTWARE or HSM)SOFTWAREno

Outputs (3)

NameDescription
key_ring_idID of the key ring
crypto_key_idID of the crypto key
crypto_key_nameFull name of the crypto key

More GCP Modules

Browse our full library of GCP infrastructure modules.

View all GCP modules