All Modules
GCPSecurity

Secret Manager

Secret storage with replication, CMEK encryption, and IAM bindings

Usage

module "secret_manager" {
  source = "github.com/fencepencil/gcp-modules//secret-manager"

  project_id = "<project_id>"
  secret_id = "<secret_id>"

  tags = var.tags
}

Inputs (5)

NameTypeDescriptionDefaultRequired
project_idstringGCP project IDyes
secret_idstringID for the secretyes
secret_datastringSecret data to storenullno
replication_typestringReplication (auto or user_managed)autono
kms_key_namestringKMS key for CMEK encryptionnullno

Outputs (3)

NameDescription
secret_idID of the secret
secret_nameFull name of the secret
version_nameName of the secret version

More GCP Modules

Browse our full library of GCP infrastructure modules.

View all GCP modules