Skip to content

Commit

Permalink
check for secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
rbs333 committed Nov 26, 2024
1 parent 126556b commit d204584
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions docs/user_guide/vectorizers_04.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -571,10 +571,11 @@
"import os\n",
"import getpass\n",
"\n",
"# Either set environment variables AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_REGION\n",
"# Or configure directly:\n",
"os.environ[\"AWS_ACCESS_KEY_ID\"] = getpass.getpass(\"Enter AWS Access Key ID: \")\n",
"os.environ[\"AWS_SECRET_ACCESS_KEY\"] = getpass.getpass(\"Enter AWS Secret Key: \")\n",
"if \"AWS_ACCESS_KEY_ID\" not in os.environ:\n",
" os.environ[\"AWS_ACCESS_KEY_ID\"] = getpass.getpass(\"Enter AWS Access Key ID: \")\n",
"if \"AWS_SECRET_ACCESS_KEY\" not in os.environ:\n",
" os.environ[\"AWS_SECRET_ACCESS_KEY\"] = getpass.getpass(\"Enter AWS Secret Key: \")\n",
"\n",
"os.environ[\"AWS_REGION\"] = \"us-east-1\" # Change as needed"
]
},
Expand Down Expand Up @@ -834,7 +835,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3.8.13 ('redisvl2')",
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
Expand All @@ -848,14 +849,9 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.2"
"version": "3.11.9"
},
"orig_nbformat": 4,
"vscode": {
"interpreter": {
"hash": "9b1e6e9c2967143209c2f955cb869d1d3234f92dc4787f49f155f3abbdfb1316"
}
}
"orig_nbformat": 4
},
"nbformat": 4,
"nbformat_minor": 2
Expand Down

0 comments on commit d204584

Please sign in to comment.