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 - Amazon Web Services (AWS) Tutorial
From the course: Complete Guide to AWS Software Deployment
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
-
-
-
-
(Locked)
Create an AWS EC2 instance9m 43s
-
(Locked)
Connect to an EC2 instance with AWS Systems Manager5m 32s
-
(Locked)
Understanding AWS CloudFormation4m 29s
-
(Locked)
Writing an AWS CloudFormation template14m 31s
-
(Locked)
Running an AWS CloudFormation template5m 34s
-
(Locked)
Concepts for updating an AWS CloudFormation stack1m 9s
-
(Locked)
Practice updating AWS CloudFormation stacks via change sets10m 20s
-
(Locked)
Challenge: Use CloudFormation to build an instance with SSM1m 7s
-
(Locked)
Solution: Use CloudFormation to build an instance with SSM7m 9s
-
(Locked)
Understanding AWS CloudFormation custom resources1m 44s
-
(Locked)
Create an AWS CloudFormation custom resource, part 116m 16s
-
(Locked)
Create an AWS CloudFormation custom resource, part 25m 17s
-
(Locked)
CloudFormation teardown54s
-
(Locked)
-
-
-
-
-
-