Skip to content

Commit 00a2745

Browse files
clarified python code in step 4.2 (#722)
1 parent 7065c7d commit 00a2745

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

source/includes/steps-fle-convert-to-a-remote-master-key-aws.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,8 @@ content: |
262262
kms_providers, # pass in the kms_providers from the previous step
263263
key_vault_namespace
264264
)
265-
265+
266+
client = MongoClient(connection_string)
266267
client_encryption = pymongo.encryption.ClientEncryption(
267268
{
268269
"aws": {
@@ -274,7 +275,7 @@ content: |
274275
client,
275276
CodecOptions(uuid_representation=STANDARD)
276277
)
277-
data_key_id = client_encryption.create_data_key("aws")
278+
data_key_id = client_encryption.create_data_key("aws", {"region": "<Master Key AWS Region>","key": "<Master Key ARN>"})
278279
279280
.. note::
280281

0 commit comments

Comments
 (0)