From 8acfc52b6feef96ac706c43520c73f5f01fd1fba Mon Sep 17 00:00:00 2001 From: Volodymyr Zotov Date: Fri, 1 Dec 2023 15:50:19 -0600 Subject: [PATCH] Update README.md in examples to mention service account option --- examples/README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/examples/README.md b/examples/README.md index 3f0a53f6..0521d572 100644 --- a/examples/README.md +++ b/examples/README.md @@ -3,9 +3,13 @@ This example demonstrates creating the currently supported types of 1Password Items (Logins, Passwords, and Databases). ## Prerequisites -To run this example you have to have setup a 1Password Connect API instance and issued a Token with access to a demo vault. You will need to export both the Connect API token and the UUID of your demo vault as environment variables. +To run this example you have to have either issue a 1Password service account token or setup a 1Password Connect API instance and issued a Connect Token with access to a demo vault. You will need to export both the Connect API token and the UUID of your demo vault as environment variables. ```sh +# to use service account, set +$ export OP_SERVICE_ACCOUNT_TOKEN="Put your 1Password service account token here" + +# to use Connect, set $ export OP_CONNECT_TOKEN="Put your 1Password Connect API token here" $ export TF_VAR_demo_vault="Put a Vault UUID that has been added to your 1Password Connect API here" ```