Last active
March 22, 2020 12:07
-
-
Save MyKEms/5c6bd7d8cbf6a7ac173e1a6584e87677 to your computer and use it in GitHub Desktop.
Use AWS CLI to retreive all items from DynamoDB via PowerShell
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 characters
function Get-DDBScan ($table) { | |
$Items = aws dynamodb scan --table-name $table | ConvertFrom-Json | |
$Items.items | |
} | |
#Usage | |
Get-DDBScan -table Music | |
#Depends on - https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2.html | |
#Recommended to read - https://aws-cli-eq-pwsh.shibata.tech/dynamodb/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment