This example shows how to specify a secret that will send event notification to the specified Pub/Sub Topic. See Secret Manager event notifications for more details.
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 | ✓ | Notifications sent to Pub/Sub Topic provided. |
TTL | Not managed by example. |
# Example TF vars file
project_id = "my-project-id"
id = "my-secret-id"
secret = "T0pS3cretP@ssword!"
topics = [
'projects/my-project-id/topics/my-secret-notifications'
]