Archive for November 14th, 2008

PowerShell for Amazon S3

amazon_powershellAfter Jeffrey blogged about PowerShell snapin for GoGrid it did not take too long before a snapin for Amazon appeared.

Specifically, the folks at CloudBerry Lab who produce utilities for Amazon services have made available (for free!) 10 cmdlets for Amazon’s Simple Storage Service (S3):

  • Add-CloudFolder – Create new folder
  • Copy-CloudItem – Copy cloud item (file or folder) to the Destination
  • Get-CloudFilesystemConnection – Get connection to local file system
  • Get-CloudItem – List files and folder in current folder
  • Get-CloudRootFolder – Get root folders
  • Get-CloudS3Connection – Get S3 connection
  • Move-CloudItem – Move cloud item (file or folder) to the Destination
  • Remove-CloudItem – Remove cloud items (file or folder)
  • Rename-CloudItem – Rename cloud item (file or folder)
  • Select-CloudFolder – Get cloud folder. Must be used for getting folder for other commands as current folder.

As you can see, this basically lets you operate with the files on the Amazon side, and move/copy files to the services and back.

They have a nice (Norton Commander-like) UI as well, but it is great that they added PowerShell as it makes it much easier to automate storage management. E.g. you could create a script which would go through your local files and back up the ones you recently changed to the cloud – nice!

One piece of feedback I would submit is considering making the snapin a provider so you can treat your Amazon storage as just another file drive attached to your computer. To my test this would be much more natural.

Still, good job, and great to see yet another platform falling into the PowerShell realm! 🙂

You can read more about the cmdlets here and download them here.

Tags: , ,


Legal

The posts on this blog are provided “as is” with no warranties and confer no rights. The opinions expressed on this site are mine and mine alone, and do not necessarily represent those of my employer - WSO2 or anyone else for that matter. All trademarks acknowledged.

© 2007-2014 Dmitry Sotnikov

November 2008
M T W T F S S
 12
3456789
10111213141516
17181920212223
24252627282930