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.
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 TF vars file
project_id = "my-project-id"
id = "my-secret-id"
accessors = [
"serviceAccount:[email protected]",
"user:[email protected]"
]