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:
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
Install from the PSGallery:
Install-Module PSDynamoDB
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'
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.
You can create and manage tables using the AWS.Tools.DynamoDBv2 module.