From the course: AWS CloudFormation for Beginners

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

CloudFormation in four minutes

CloudFormation in four minutes

From the course: AWS CloudFormation for Beginners

Start my 1-month free trial

CloudFormation in four minutes

- [Host] AWS CloudFormation is one of the pioneer tools that allowed infrastructure to be expressed as code. CloudFormation allows you to express AWS resources in a text file in either a JSON format or YAML format. Let's see an example. Here is a snippet of a CloudFormation template that is defining an AWS security group for a typical web server. First, we give it a name. In this case, it is called webSG, short for web security group. Next, we specify that webSG is a resource of type security group and then define it's properties. The same properties you will define if you were creating a security group from the AWS console. First, we have a human readable description. Next, we have three ingress rules. The first two rules are allowing TCP traffic from the entire 10.0.0.0/8 side of glock, on ports 80 and 443. This will be a very typical ingress rule for our web server, to be accessible from within our corporate network. The third rule allows traffic onport 80 from members of another…

Contents