This example expects an error, as the hello-world bucket already exists and S3 uses a global namespace.
New-S3Bucket -BucketName "hello-world"
New-S3Bucket : The requested bucket name is not available. The bucket namespace is shared by all users of the system. Please select a different name and try again.
If you replace hello-world with something else that is unique, the bucket will be created without error, and you will get the following result:
CreationDate BucketName ------------ ---------- 3/30/2017 11:43:03 PM hello-world-832jklsdJF
This example requires the following dependencies:
PowerShell. See http://docs.aws.amazon.com/powershell/latest/userguide/pstools-getting-set-up.html
Credentials. These can be created using the AWS console. There are several options for managing these using PowerShell. Below is a simple example for setup. See http://docs.aws.amazon.com/powershell/latest/userguide/specifying-your-aws-credentials.html
PS C:\> Set-AWSCredentials -AccessKey AKIAIOSFODNN7LAJD8A
-SecretKey "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEjw9JFKS3" -StoreAs default