How to Make an S3 Bucket using PowerShell

Sometimes, it’s easier to work with AWS in a shell environment. Although the AWS web dashboard is great for what it is, it takes only a few seconds in PowerShell to create a new S3 account.
Using the AWS web dashboard takes much longer. Let’s talk about how to create an S3 bucket using PowerShell so that you can also be a programmer productivity guru.

An Overview of How to Make an S3 Bucket with PowerShell [VIDEO]
Trevor Sullivan demonstrates how to create an Amazon S3 bucket using AWS PowerShell. After describing the steps to prepare your Amazon Web Services account, he will show you how to use PowerShell to execute the commands and point you to where you can find more information.

AWS Cloud Automation – AWS TrainingRelated training by SPOTO
Start training
How do I install AWS Tools for PowerShell?
You must first complete the following steps before you can use PowerShell to access AWS. Although PowerShell is a powerful environment, it doesn’t know how AWS works out of the box. We need to install PowerShell packages first.
We need to install the AWS Tools for PowerShell package. AWS Tools for PowerShell is available in one of these flavors:
Modular version
Bundle package

You can only install the tools you need with the modular version of AWS Tool for PowerShell. If you are only working with AWS S3, then you will only need the common tools as well as the tools for S3.
The bundle version, on the other hand, includes all AWS PowerShell applets. The bundle version of AWS Tool for PowerShell is simpler to install, but will contain applets you may not use.
Let’s just install the bundle version. There are several ways to install AWS Tools for PowerShell. You can download the zip file from the package and then manually install the applet. You can also download the zip file from AWS PowerShell documentation page if you prefer to manually install AWS Tools for PowerShell.
The second method to install AWS Tools for PowerShell can be more complicated. This involves running a command directly through PowerShell to install the PowerShell Core using the PowerShell Gallery. This command is:
Set-AWSCredential –AccessKey yourAccessKey –SecretKey yourSecretKey —StoreAs MyNewProfileMake certain to replace ‘YourAccessKey’, ‘yourSecretKey’ and ‘MyNewProfile’ with your actual AWS access keys, secret keys, and profile names.
After you have run the command, your AWS credentials are saved in the AWS SDK under your profile name.
However, you will need to refer to that profile name in an AWS Tools for PowerShell applet. It is simple enough to refer to the profile name. In any AWS applet command, use the ‘-ProfileName’ parameter and your credentials profile name.
If you plan to use those credentials often, you can make them the default profile in AWS Tools for PowerShell. This will allow you to skip the ‘-ProfileName” parameter for each command, unless you are using a different AWS credentials profile. To set your default credentials profile for the AWS SDK, PowerShell, use the below command:
Are you not a SPOTO subscriber yet? Start your week-long free trial now.
SPOTO offers everything you need to improve your IT skills and advance in your career: unlimited video training and Practice exams, Virtual Labs and validated learning with in–video Quizzes, Accountability coaching, and access to our exclusive IT professionals community.

Previous post How to create an Amazon SNS topic with PowerShell
Next post How to create Azure Job Exports and Imports