Skip to content

Commit 6320c71

Browse files
auto commit
1 parent 02a895f commit 6320c71

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Examples/runtimes/go/migration/PlaintextToAWSDBE/awsdbe/migrationexamplestep2.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,13 @@ func MigrationStep2(kmsKeyID, ddbTableName, partitionKeyValue, sortKeyReadValue
5555

5656
listOfTableConfigs := configureTable(kmsKeyID, ddbTableName, dbesdkdynamodbencryptiontypes.PlaintextOverrideForbidPlaintextWriteAllowPlaintextRead)
5757

58-
// 5. Create DynamoDB client with dbEsdkMiddleware
58+
// 2. Create DynamoDB client with dbEsdkMiddleware
5959
dbEsdkMiddleware, err := dbesdkmiddleware.NewDBEsdkMiddleware(listOfTableConfigs)
6060
utils.HandleError(err)
6161

6262
ddb := dynamodb.NewFromConfig(cfg, dbEsdkMiddleware.CreateMiddleware())
6363

64-
// 6. Put an item into your table.
64+
// 3. Put an item into your table.
6565
// This item will be encrypted.
6666
encryptedAndSignedValue := "this will be encrypted and signed"
6767
item := map[string]types.AttributeValue{
@@ -85,7 +85,7 @@ func MigrationStep2(kmsKeyID, ddbTableName, partitionKeyValue, sortKeyReadValue
8585
return err
8686
}
8787

88-
// 7. Get an item back from the table.
88+
// 4. Get an item back from the table.
8989
// If this is an item written in plaintext (i.e. any item written
9090
// during Step 0 or 1), then the item will still be in plaintext.
9191
// If this is an item that was encrypted client-side (i.e. any item written

Examples/runtimes/go/migration/PlaintextToAWSDBE/awsdbe/migrationexamplestep3.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,13 @@ func MigrationStep3(kmsKeyID, ddbTableName, partitionKeyValue, sortKeyReadValue
5454

5555
listOfTableConfigs := configureTable(kmsKeyID, ddbTableName, dbesdkdynamodbencryptiontypes.PlaintextOverrideForbidPlaintextWriteForbidPlaintextRead)
5656

57-
// 5. Create DynamoDB client with dbEsdkMiddleware
57+
// 2. Create DynamoDB client with dbEsdkMiddleware
5858
dbEsdkMiddleware, err := dbesdkmiddleware.NewDBEsdkMiddleware(listOfTableConfigs)
5959
utils.HandleError(err)
6060

6161
ddb := dynamodb.NewFromConfig(cfg, dbEsdkMiddleware.CreateMiddleware())
6262

63-
// 6. Put an item into your table.
63+
// 3. Put an item into your table.
6464
// This item will be encrypted.
6565
encryptedAndSignedValue := "this will be encrypted and signed"
6666
item := map[string]types.AttributeValue{
@@ -83,7 +83,7 @@ func MigrationStep3(kmsKeyID, ddbTableName, partitionKeyValue, sortKeyReadValue
8383
return err
8484
}
8585

86-
// 7. Get an item back from the table.
86+
// 4. Get an item back from the table.
8787
// If this is an item written in plaintext (i.e. any item written
8888
// during Step 0 or 1), then the item will still be in plaintext.
8989
// If this is an item that was encrypted client-side (i.e. any item written

0 commit comments

Comments
 (0)