Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Accessors

This example shows how to specify a secret with a list of accounts that will have read-only access to the secret value. Secret replication is managed automatically.

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 User specified.
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"
secret = "T0pS3cretP@ssword!"
accessors = ["serviceAccount:[email protected]", "user:[email protected]"]