Skip to content

Commit e2e45eb

Browse files
sortkeywritevalue
1 parent c50b7d1 commit e2e45eb

File tree

1 file changed

+2
-2
lines changed
  • Examples/runtimes/go/migration/PlaintextToAWSDBE/awsdbe

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ primary key configuration:
3535
- Partition key is named "partition_key" with type (S)
3636
- Sort key is named "sort_key" with type (S)
3737
*/
38-
func MigrationStep1(kmsKeyID, ddbTableName, partitionKeyValue, sortKeyReadValue string) error {
38+
func MigrationStep1(kmsKeyID, ddbTableName, partitionKeyValue, sortKeyWriteValue, sortKeyReadValue string) error {
3939
cfg, err := config.LoadDefaultConfig(context.TODO())
4040
utils.HandleError(err)
4141

@@ -68,7 +68,7 @@ func MigrationStep1(kmsKeyID, ddbTableName, partitionKeyValue, sortKeyReadValue
6868
encryptedAndSignedValue := "this will be encrypted and signed"
6969
item := map[string]types.AttributeValue{
7070
"partition_key": &types.AttributeValueMemberS{Value: partitionKeyValue},
71-
"sort_key": &types.AttributeValueMemberN{Value: "1"},
71+
"sort_key": &types.AttributeValueMemberN{Value: sortKeyWriteValue},
7272
"attribute1": &types.AttributeValueMemberS{Value: encryptedAndSignedValue},
7373
"attribute2": &types.AttributeValueMemberS{Value: "this will never be encrypted, but it will be signed"},
7474
"attribute3": &types.AttributeValueMemberS{Value: "this will never be encrypted nor signed"},

0 commit comments

Comments
 (0)