GoogleCloudPlatform/secret-manager

Creates one or more Google Secret Manager secrets and manages basic permissions.

Terraform module
Google Cloud
available
Placeholder. This template is not in the library yet. Deploy opens the platform so you can start from your own repository; tell us there if you want this one.
Downloads
2.4M
Version
0.10.0
Published
2026-10-08
License
Apache-2.0
Maintainer
GoogleCloudPlatform

About

Creates one or more Google Secret Manager secrets and manages basic permissions.

Maintained by GoogleCloudPlatform on the Terraform Registry. Latest version 0.10.0, 2.4M downloads. Requires providers: google >= 4.83.0, < 8; google-beta >= 4.83.0, < 8.

Deploy creates a StackGuardian workflow from the module's GitHub repository, pinned to this version. You set the inputs, see the plan, then approve the apply.

Use cases

  • Customer-managed keys with rotation turned on from day one.
  • Secrets referenced by workflows, never stored in repositories.
  • One key and secret layout shared by every environment.

Inputs

Required inputs:

  • project_id — string

10 inputs, 2 outputs in total. The full list, with defaults and descriptions, is on the registry page.

What it creates

  • google_secret_manager_secret
  • google_secret_manager_secret_version
  • google_secret_manager_secret_iam_binding
  • google_kms_crypto_key_iam_member
  • google_pubsub_topic_iam_member
  • google_project_service_identity

How it runs on StackGuardian

Terraform workflow from the module's GitHub repository: plan, policy check, approval, then apply.

Plan
Policy check
Approval
Apply

Approvals happen in StackGuardian. An agent can never approve its own run. Every run keeps its plan, policy results and approver in the audit log.

Pick a template. Deploy it with guardrails.