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

A yellow bucket on a sandy beach
Photo by Courtney Moore on Unsplash


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. …

Level 0: What it is and why you should care.

Brightly coloured building blocks stacked loosely on top of each other.
Photo by Sharon McCutcheon from Pexels

What is Infrastructure as Code?

Infrastructure as Code (or IaC) is a process by which you can manage and provision the infrastructure your code will run on using machine-readable, committable, reviewable configuration files.

Why Infrastructure as Code?

In the beginning, there were servers: actual physical machines that existed in the real world as objects. You could touch them. They lived in a data centre across town, a dingy basement, or, if you were really unlucky, a cupboard shared with the cleaner. If you wanted to install or update something you had to connect to the physical machine over the network or a serial interface. …

The B in Benoit B. Mandelbrot stands for Benoit B. Mandelbrot

The Fibonacci sequence is one of the better known sequences of numbers, and one of my favourites. If you’ve never seen it — or, more likely, if you only ever saw it in some long-forgotten maths lesson and need a refresher — here are its first 10 terms:

0, 1, 1, 2, 3, 5, 8, 13, 21, 34

The Fibonacci sequence is defined by the following, recursive, function:

f(n) = f(n-1)+f(n-2)

Starting from:

f(0) = 0 & f(1) = 1

That is, after the first two terms, each successive term is the sum of the two terms before it.


Adam Henley (He/Him)

I’m a Software Developer at Shuttlerock where I write mostly Ruby and Typescript. I also dabble in any language that takes my fancy.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store