Skip to content

Latest commit

 

History

History
29 lines (24 loc) · 943 Bytes

File metadata and controls

29 lines (24 loc) · 943 Bytes

Generated Secret

This example shows how to use the Terraform random provider to generate a random secret value which is replicated automatically, with read-only access granted to the accounts provided.

Example at a glance

Item Managed by module Description
Access Control User specified accounts will be granted view access to secret.
Replication Automatically managed by Secret Manager.
Secret Value Generated by example.
Pub/Sub Notifications Not managed by example.
TTL Not managed by example.

Example terraform.tfvars

# Example TF vars file
project_id = "my-project-id"
id = "my-secret-id"
accessors = [
  "serviceAccount:[email protected]",
  "user:[email protected]"
]