Member-only story

Create an S3 Bucket using AWS CloudFormation

Sarah Lean
3 min readMay 5, 2022

--

In this blog post I want to show you how to create an S3 bucket using a CloudFormation template. If you are new to Amazon Web Services (AWS)’s CloudFormation templates, this will be a great first template to deploy!

What is CloudFormation?

AWS CloudFormation is a tool that can help you create or manage your resources within AWS in a programmatic way using Infrastructure as Code (IaC). It can help you replicate your environment easily within a few clicks.

You can declare the resources that you need within your CloudFormation template. They will be created in the right order.

A CloudFormation template can either be YAML or JSON. In this tutorial, we are going to focus on YAML.

Create the template

Let’s get started with a simple template for creating an S3 Storage bucket within AWS.

Open up your favourite editor, like NotePad++ or, as I prefer, Visual Studio Code.

The first section of the template is the Format Version and Description sections.

--

--

Sarah Lean
Sarah Lean

Written by Sarah Lean

Community Speaker — Lifelong Learner — Founder of the Glasgow Azure User Group

No responses yet