Table of Contents
Update 12/5/2018: Pure Storage has modified the returned JSON file. The AccessKey is no longer stored as Id, rather it is stored as Name. I’ve updated the code below to reflect that.
Part of my job involves managing our storage fleet, both block storage and some file level services. I recently had a conversation with some developers about methods in which we were storing files. The current process involved multiple layers consisting of applications, servers, virtualization and storage systems. Not that great for a rapidly growing file system.
I suggested to the team that we investigate the use of our Pure Storage FlashBlade investment. The FlashBlade has native S3-compliant object store support, which would make it an ideal platform for what we were looking to do. To prove out that the FlashBlade could be up for the task, and to give some basic examples, I leveraged the AWS Tools for PowerShell to do some file manipulation on a bucket within our FlashBlade. If you’re looking to start doing some object storage on your FlashBlade check out the cmdlets here. Don’t forget to check out the FlashBlade REST API guide to see how you could write some native API integration and bypass the AWS tools entirely.
Create FlashBlade credentials
You will access the FlashBlade using an Access Key and a Secret Key. You’ll want to protect both of these. Note: These instructions were created prior to the introduction of Shared Accounts in Purity. I’ll update these once we have a FlashBlade on the newer Purity OS.
- Navigate to the Storage -> Object Store page on your FlashBlade.
- Add a new Access Key. The user name here is for documentation purposes – you won’t use this with the APIs. Download the JSON file or copy out the access and secret keys.
Install the AWS Tools
The AWS Tools can be obtained from the PowerShell Gallery:
| |
Create a credential profile
The AWS tools use a credential profile to store your access and secret key for use. They’re encrypted in your user profile on your system. Check out the AWS Tools for PowerShell documentation for more information.
| |
Bucket Management
| |
Object Management
Creating Objects
| |
Listing Objects
| |
Removing Objects
| |
Footnote
- The FlashArray now supports running containers/virtual machines via Purity Run. If you’re looking to provide NAS services off a FlashArray, check out the Windows File Server Run application for FlashArray.