|
45 | 45 | {
|
46 | 46 | "cell_type": "markdown",
|
47 | 47 | "id": "0d2fd39b-86a2-4e34-a214-7c9bf13f9579",
|
48 |
| - "metadata": {}, |
| 48 | + "metadata": { |
| 49 | + "jp-MarkdownHeadingCollapsed": true |
| 50 | + }, |
49 | 51 | "source": [
|
50 | 52 | "### Log into the workspace\n",
|
51 | 53 | "\n",
|
52 |
| - "Check that you have `stash` command available in your PATH, and run the command below in your shell (not here in this notebook) and follow the instructions.\n", |
| 54 | + "Make sure that you have `stash` command available in your PATH, and run the command below in your terminal (not here in this notebook) and follow the instructions.\n", |
53 | 55 | "You will be either automatically be logged into your workspace, or be prompted to log into one of them.\n",
|
54 | 56 | "Note the **Workspace ID** shown here.\n",
|
55 | 57 | "\n",
|
56 |
| - "> stash login" |
| 58 | + "> `stash login`" |
57 | 59 | ]
|
58 | 60 | },
|
59 | 61 | {
|
|
66 | 68 | "> **NOTE**: If you already have an access key and prefer to use that rather than create a new one, you can use it instead. However, it is recommended that you create one here to use with this notebook.\n",
|
67 | 69 | "\n",
|
68 | 70 | "Now you need to create an access key for the workspace.\n",
|
69 |
| - "Run the following command and securely store the values for **CS_CLIENT_ACCESS_KEY** as you will not be able to recover it if you lose it.\n", |
70 |
| - "The `CS_WORKSPACE_ID` should be the same value as the Workspace ID shown at the step above." |
| 71 | + "Run the following command and **securely store** the value for **CS_CLIENT_ACCESS_KEY** as you will not be able to recover it if you lose it.\n", |
| 72 | + "The `CS_WORKSPACE_ID` should be the same value as the Workspace ID shown at the step above.\n", |
| 73 | + "\n", |
| 74 | + "> **NOTE**: If you receive an error like **\"Unable to create access key: Request failed: Duplicate key error: ...\"**, unless you have used this key anywhere else, you can revoke the key from your terminal like:\n", |
| 75 | + "> \n", |
| 76 | + "> `stash access-keys revoke cipherstash_getting_started_access_key`\n", |
| 77 | + "> \n", |
| 78 | + "> and run the 'access-keys create' command again" |
71 | 79 | ]
|
72 | 80 | },
|
73 | 81 | {
|
|
497 | 505 | "cell_type": "code",
|
498 | 506 | "execution_count": null,
|
499 | 507 | "id": "698c6970-62f0-4cfb-b779-7a5dbbe11d3a",
|
500 |
| - "metadata": {}, |
| 508 | + "metadata": { |
| 509 | + "scrolled": true |
| 510 | + }, |
501 | 511 | "outputs": [],
|
502 | 512 | "source": [
|
503 | 513 | "from pprint import pprint\n",
|
|
1062 | 1072 | "cell_type": "code",
|
1063 | 1073 | "execution_count": null,
|
1064 | 1074 | "id": "37e59466-3959-4c2e-ba95-219949ea9078",
|
1065 |
| - "metadata": {}, |
| 1075 | + "metadata": { |
| 1076 | + "scrolled": true |
| 1077 | + }, |
1066 | 1078 | "outputs": [],
|
1067 | 1079 | "source": [
|
1068 | 1080 | "! printf '\\\\x \\n select * from examples where id = {record_id};' | PGPASSWORD=postgres psql -h localhost -p 5432 -U postgres cipherstash_getting_started"
|
|
0 commit comments