Skip to content

Latest commit

 

History

History
25 lines (20 loc) · 795 Bytes

File metadata and controls

25 lines (20 loc) · 795 Bytes

TTL: Automatic deletion of secret

This example shows how to specify a secret that will be automatically deleted after a set period of time.

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 User specified.
Pub/Sub Notifications Not managed by example.
TTL Automatically deleted after specified number of seconds.

Example terraform.tfvars

# Example TF vars file
project_id = "my-project-id"
id = "my-secret-id"
secret = "T0pS3cretP@ssword!"
ttl_secs = 300