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)
| Name | Type | Description | Default | Required |
|---|---|---|---|---|
project_id | string | GCP project ID | — | yes |
secret_id | string | ID for the secret | — | yes |
secret_data | string | Secret data to store | null | no |
replication_type | string | Replication (auto or user_managed) | auto | no |
kms_key_name | string | KMS key for CMEK encryption | null | no |
Outputs (3)
| Name | Description |
|---|---|
secret_id | ID of the secret |
secret_name | Full name of the secret |
version_name | Name of the secret version |