How to Create an S3 Bucket with PowerShell

112 Views
Published
Watch this full PowerShell for AWS course: https://courses.cbt.gg/9xn

In this video, Trevor Sullivan covers creating an S3 Bucket with PowerShell. The new S3 bucket command in PowerShell is simple to use and has lots of parameters that can make specializing and configuring your new S3 bucket a breeze. Trevor covers the following topics in the video:

• Where to find a sample git repo where you can follow the exact steps Trevor takes
• The syntax AWS Tools for PowerShell uses
• All the different parameters that are supported by the New-S3Bucket command
• Setting permissions and access to new buckets
• Navigating existing buckets and changing their parameters

Once created, an S3 bucket is your placeholder for uploading and downloading files. Whether you lock the bucket down and store confidential information in it, or make a public-read bucket for anyone to see, it all comes down to knowing the right commands.

PowerShell commands typically follow a simple convention of a verb followed by the object that action should be performed against. In AWS Tools for PowerShell, "New-S3Bucket" is how to instantiate an S3 bucket.

Only one parameter is required by New-S3Bucket, and that's -BucketName, which needs a string value. There are many more parameters that are optional — such as -CannedACLName. There are many inputs to that command that affect the readability and access of a bucket.

There are a few critical commands that can uncover all the other commands and parameters that relate to a PowerShell command. Trevor explores using Get-Help as well as Get-Command to understand the extensibility of AWS Tools for PowerShell.

Start your free week with CBT Nuggets. https://cbt.gg/2LZhF9F

From the CBT Nuggets blog:

• Are Your S3 Buckets Leaking? | https://blog.cbt.gg/cwi
• 9 Ways to Protect Your Cloud with AWS | https://blog.cbt.gg/kug
• Every IT Pro Should Start with AWS Cloud Practitioner | https://blog.cbt.gg/5do
• 5 Cloud Certs Under $300 to Get You Going | https://blog.cbt.gg/u42
• Cloud Networking Tech Panel, Q&A | https://blog.cbt.gg/iv6

Start learning with CBT Nuggets:

• AWS Certified Cloud Practitioner (CLF-C01) | https://courses.cbt.gg/2br

-----------------
Connect with CBT Nuggets for the latest in IT training:
Twitter - https://twitter.com/CBTNuggets
Facebook - http://facebook.com/CBTNuggets
Instagram - http://instagram.com/CBTNuggets
LinkedIn - https://www.linkedin.com/company/cbt-nuggets

#S3bucket #PowerShell #CloudAutomation
Category
Tech Education Channel
Be the first to comment