How to Create an S3 Bucket

How to set up the AWS CLI, how to authenticate to AWS, and show how to create and destroy an S3 bucket

Adamish
5 min readJul 30, 2021
A yellow bucket on a sandy beach
Photo by Courtney Moore on Unsplash

Introduction

The goal of this article is to guide you through the steps required to set up AWS and the AWS command line interface so that by its end you should be comfortable setting up and destroying an AWS S3 bucket from the command line.

Why Command Line?

It’s absolutely possible to log in to the AWS console, navigate the various menus and web forms, and set up an S3 bucket. However, one of the benefits of setting up resources from the command line is that the act now becomes much easier to repeat without error, and much easier to document. If you have to set up multiple resources, being able to script their creation easily will cut down on a lot of laborious and repetitive Click-Ops.

Installing the AWS Command Line Interface

Installation of the command line interface itself is relatively simple; AWS provides its own instructions on how to get up and running with its command line interface here. On either macOS or Windows, it’s as simple as downloading and running an installer from that page. On Linux, it’s as simple as:

--

--

Adamish

I’m a Lead Developer and write mostly Ruby on Rails. I also dabble in any language that takes my fancy.