/PSDynamoDB

A quick and dirty PowerShell module to talk to Amazon's DynamoDBs

Primary LanguagePowerShellMIT LicenseMIT

PSDynamoDB

A quick and dirty PowerShell module to talk to Amazon's DynamoDBs.

It is possible to update items in AWS' DynamoDB with PowerShell! Check it out:

Prerequisites

Make sure you have the AWS PowerShell module installed. At least the AWS.Tools module with DynamoDBv2.

Install-Module AWS.Tools.Installer
Install-AWSToolsModule DynamoDBv2

Configure your AWS credentials.

Set-AWSCredential -AccessKey 'blah' -SecretKey 'blah' -StoreAs MyNewProfile
Initial-AWSDefaultConfiguration -ProfileName MyNewProfile -Region us-west-2

Setup

Install from the PSGallery:

Install-Module PSDynamoDB

Usage

Initialize the DynamoDB Client:

Initialize-DdbClient -TableName 'TableName'

Create a new item:

New-DdbTableItem @{
    'FirstName' = 'Anthony'
    'LastName'  = 'Howell'
    'Language'  = 'PowerShell'
    'OnTwitter' = '@theposhwolf'
}

Get that item:

Get-DdbTableItem -HashKey 'Anthony' -RangeKey 'Howell'

Warning

This module was quickly thrown together to support a POC. If it pans out, I will be developing this further. If not, then this may orphaned. Feel free to fork and/or contribute.

Additional Notes

You can create and manage tables using the AWS.Tools.DynamoDBv2 module.