Created
November 23, 2021 23:20
-
-
Save edwint88/0fadef69555b62a613bc16a766dff44c to your computer and use it in GitHub Desktop.
Revisions
-
edwint88 created this gist
Nov 23, 2021 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,5 @@ aws dynamodb scan --table-name $TABLE_NAME --attributes-to-get "$KEY" \ --query "Items[].$KEY.S" --output text | \ tr "\t" "\n" | \ xargs -t -I keyvalue aws dynamodb delete-item --table-name $TABLE_NAME \ --key "{\"$KEY\": {\"S\": \"keyvalue\"}}"