Skip to content

Latest commit

 

History

History

empty-secret-value

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Create a secret without a value

This example shows how to specify a secret that will have replication managed automatically, but without an initial secret value.

Example at a glance

Item Managed by Terraform Description
Access Control Not managed by example; permissions to read the secret must be specified externally.
Replication Automatically managed by Secret Manager.
Secret Value Not managed by example; a versioned value must be added to the secret before it can be accessed
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"