Skip to content

Instantly share code, notes, and snippets.

@MyKEms
Last active March 22, 2020 12:07
Show Gist options
  • Save MyKEms/5c6bd7d8cbf6a7ac173e1a6584e87677 to your computer and use it in GitHub Desktop.
Save MyKEms/5c6bd7d8cbf6a7ac173e1a6584e87677 to your computer and use it in GitHub Desktop.
Use AWS CLI to retreive all items from DynamoDB via PowerShell
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