Skip to content

Latest commit

 

History

History

with-random-provider

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

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]"
]