Skip to content

Commit 65347f4

Browse files
committed
1. Added license short text to the notebook
2. Moved SageMaker directory under Python
1 parent f455add commit 65347f4

File tree

4 files changed

+52
-22
lines changed

4 files changed

+52
-22
lines changed
File renamed without changes.

SageMaker/connection-service-specific-credentials /SageMaker_Keyspaces_with_server_credentials.ipynb renamed to python/datastax-v3/SageMaker/connection-service-specific-credentials /SageMaker_Keyspaces_with_server_credentials.ipynb

Lines changed: 30 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,25 @@
22
"cells": [
33
{
44
"cell_type": "markdown",
5-
"id": "efe02727",
5+
"id": "0fb7f3db",
6+
"metadata": {},
7+
"source": [
8+
"*Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved* \n",
9+
"\n",
10+
"*SPDX-License-Identifier: MIT-0* "
11+
]
12+
},
13+
{
14+
"cell_type": "markdown",
15+
"id": "b78e5991",
16+
"metadata": {},
17+
"source": [
18+
"---"
19+
]
20+
},
21+
{
22+
"cell_type": "markdown",
23+
"id": "81e637d6",
624
"metadata": {},
725
"source": [
826
"## Connecting to Amazon Keyspaces using server-side credentials \n",
@@ -12,7 +30,7 @@
1230
},
1331
{
1432
"cell_type": "markdown",
15-
"id": "68d038c1",
33+
"id": "8a1a923c",
1634
"metadata": {},
1735
"source": [
1836
"Before we start we need to generate the Keyspaces credential and use SecretManager to securly store credentials. \n",
@@ -39,13 +57,13 @@
3957
"2. Store ServiceUserName and ServicePassword in the SecretManager. As a best practice we don't want to store credential in SageMaker Notebooks in plain text. \n",
4058
"\n",
4159
" In this example I'm using \n",
42-
"_Keyspaces_Server_Generated_credential_ as a Secret name and _keyspaces_generated_id_ and _keyspaces_generated_pw_ fields to store Keyspaces ID and password. \n"
60+
"*Keyspaces_Server_Generated_credential* as a Secret name and _keyspaces_generated_id_ and _keyspaces_generated_pw_ fields to store Keyspaces ID and password. \n"
4361
]
4462
},
4563
{
4664
"cell_type": "code",
4765
"execution_count": null,
48-
"id": "d4fd77c1",
66+
"id": "a91e2ab0",
4967
"metadata": {},
5068
"outputs": [],
5169
"source": [
@@ -60,7 +78,7 @@
6078
{
6179
"cell_type": "code",
6280
"execution_count": null,
63-
"id": "9e06a3a6",
81+
"id": "68e63b3f",
6482
"metadata": {},
6583
"outputs": [],
6684
"source": [
@@ -71,7 +89,7 @@
7189
{
7290
"cell_type": "code",
7391
"execution_count": null,
74-
"id": "572c391a",
92+
"id": "a714c7dc",
7593
"metadata": {},
7694
"outputs": [],
7795
"source": [
@@ -82,7 +100,7 @@
82100
{
83101
"cell_type": "code",
84102
"execution_count": null,
85-
"id": "df0a72d8",
103+
"id": "265d59f0",
86104
"metadata": {},
87105
"outputs": [],
88106
"source": [
@@ -125,7 +143,7 @@
125143
{
126144
"cell_type": "code",
127145
"execution_count": null,
128-
"id": "e4425550",
146+
"id": "2a98e386",
129147
"metadata": {},
130148
"outputs": [],
131149
"source": [
@@ -135,7 +153,7 @@
135153
{
136154
"cell_type": "code",
137155
"execution_count": null,
138-
"id": "03fa7f66",
156+
"id": "bad5758b",
139157
"metadata": {},
140158
"outputs": [],
141159
"source": [
@@ -145,7 +163,7 @@
145163
{
146164
"cell_type": "code",
147165
"execution_count": null,
148-
"id": "75c23dba",
166+
"id": "6b22f21d",
149167
"metadata": {},
150168
"outputs": [],
151169
"source": [
@@ -158,7 +176,7 @@
158176
{
159177
"cell_type": "code",
160178
"execution_count": null,
161-
"id": "4c5c27c0",
179+
"id": "eb124f18",
162180
"metadata": {},
163181
"outputs": [],
164182
"source": [
@@ -172,7 +190,7 @@
172190
{
173191
"cell_type": "code",
174192
"execution_count": null,
175-
"id": "a3abaf72",
193+
"id": "3c9b9169",
176194
"metadata": {},
177195
"outputs": [],
178196
"source": []
File renamed without changes.

SageMaker/connection-sigv4/SageMaker_Keyspaces_with_ sigv4.ipynb renamed to python/datastax-v3/SageMaker/connection-sigv4/SageMaker_Keyspaces_with_ sigv4.ipynb

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,19 @@
22
"cells": [
33
{
44
"cell_type": "markdown",
5-
"id": "d0f1440d",
5+
"id": "aaf1d224",
6+
"metadata": {},
7+
"source": [
8+
"*Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved* \n",
9+
"\n",
10+
"*SPDX-License-Identifier: MIT-0* \n",
11+
"\n",
12+
"---"
13+
]
14+
},
15+
{
16+
"cell_type": "markdown",
17+
"id": "6cde1dbc",
618
"metadata": {},
719
"source": [
820
"## Connecting to Amazon Keyspaces using SigV4 authentication plugin for temporary credentials. \n",
@@ -14,7 +26,7 @@
1426
},
1527
{
1628
"cell_type": "markdown",
17-
"id": "9cdcdeca",
29+
"id": "04a96df1",
1830
"metadata": {},
1931
"source": [
2032
"### Requrements \n",
@@ -50,7 +62,7 @@
5062
{
5163
"cell_type": "code",
5264
"execution_count": null,
53-
"id": "b34480df",
65+
"id": "3f4e9f23",
5466
"metadata": {},
5567
"outputs": [],
5668
"source": [
@@ -61,7 +73,7 @@
6173
{
6274
"cell_type": "code",
6375
"execution_count": null,
64-
"id": "e8b700d9",
76+
"id": "e75d5af3",
6577
"metadata": {},
6678
"outputs": [],
6779
"source": [
@@ -72,7 +84,7 @@
7284
{
7385
"cell_type": "code",
7486
"execution_count": null,
75-
"id": "d6b40a2a",
87+
"id": "50da3133",
7688
"metadata": {},
7789
"outputs": [],
7890
"source": [
@@ -87,7 +99,7 @@
8799
{
88100
"cell_type": "code",
89101
"execution_count": null,
90-
"id": "6e690e59",
102+
"id": "32467082",
91103
"metadata": {},
92104
"outputs": [],
93105
"source": [
@@ -108,7 +120,7 @@
108120
{
109121
"cell_type": "code",
110122
"execution_count": null,
111-
"id": "a88c43df",
123+
"id": "253da9a4",
112124
"metadata": {},
113125
"outputs": [],
114126
"source": [
@@ -147,7 +159,7 @@
147159
{
148160
"cell_type": "code",
149161
"execution_count": null,
150-
"id": "4933806d",
162+
"id": "51a71bcd",
151163
"metadata": {},
152164
"outputs": [],
153165
"source": [
@@ -160,7 +172,7 @@
160172
{
161173
"cell_type": "code",
162174
"execution_count": null,
163-
"id": "a81cb54d",
175+
"id": "05700848",
164176
"metadata": {},
165177
"outputs": [],
166178
"source": [
@@ -178,7 +190,7 @@
178190
},
179191
{
180192
"cell_type": "markdown",
181-
"id": "320eac56",
193+
"id": "bd7ca2f5",
182194
"metadata": {},
183195
"source": [
184196
"## The end."

0 commit comments

Comments
 (0)