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