From the course: Complete Guide to AWS Software Deployment

Unlock the full course today

Join today to access over 24,400 courses taught by industry experts.

Writing an AWS CloudFormation template

Writing an AWS CloudFormation template

- [Instructor] All right, let's create a few resources using CloudFormation. If you're new to CloudFormation, this document here is a great place to get started. Here in the AWS Documentation Center, I've searched for something called template anatomy. This doc shows an outline of all the sections that you need to create a CloudFormation template. You can see there's a JSON section here, and a YAML section down below. Either one is valid, but we'll use YAML for readability. You can see that we need the three hyphens that make a YAML file at the top. We'll need AWSTemplateFormatVersion, that's required. And the rest are optional except for Resources, because of course we'll need to define some resources for this template to create. Beyond resources, in this example, we'll use both Description and Parameters. So let's go to a text editor and start to lay out the format of what this template is going to look like. I'll copy that. So we'll start with the three hyphens, and this value…

Contents