Skip to content

Commit 1cac0e9

Browse files
auto commit
1 parent 8939baa commit 1cac0e9

File tree

1 file changed

+9
-1
lines changed
  • Examples/runtimes/go/migration/PlaintextToAWSDBE/plaintext

1 file changed

+9
-1
lines changed

Examples/runtimes/go/migration/PlaintextToAWSDBE/plaintext/step0.go

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,15 @@ func MigrationStep0(ddbTableName, partitionKeyValue, sortKeyValue string) {
5353
_, err = ddb.PutItem(context.TODO(), putInput)
5454
utils.HandleError(err)
5555

56-
// 3. Get an item back from the table as it was written
56+
// 3. Get an item back from the table as it was written.
57+
// If this is an item written in plaintext (i.e. any item written
58+
// during Step 0 or 1), then the item will still be in plaintext
59+
// and will be able to be processed.
60+
// If this is an item that was encrypted client-side (i.e. any item written
61+
// during Step 2 or after), then the item will still be encrypted client-side
62+
// and will be unable to be processed in your code. To decrypt and process
63+
// client-side encrypted items, you will need to configure encrypted reads on
64+
// your dynamodb client (this is configured from Step 1 onwards).
5765
key := map[string]types.AttributeValue{
5866
"partition_key": &types.AttributeValueMemberS{Value: partitionKeyValue},
5967
"sort_key": &types.AttributeValueMemberN{Value: sortKeyValue},

0 commit comments

Comments
 (0)