AWS CloudFormation 101- How to Use !Ref to Assemble the relationship between Each AWS Resource (Part 2)
Introduction
In the previous post, I shared about what is cloud formation and also whether we should learn about it. If you coming from the previous post, I am happy for you that you “Find Your Why” to learn about AWS CloudFormation.
However, if you’re still wondering whether you need to learn it, take a look at the post and “Find Your Why”.
Besides, I also share the template structure of Cloud Formation and how to launch an EC2 Instance using the Cloud Formation template. So in this post, I will be taking another minimal step — which is adding a security group into the existing EC2 instance.
Without further ado, let’s start.
Tutorial — Adding Security Group to EC2 Instance
We created an EC2 Instance using the Cloud Formation template in the previous post. Refer to the gist below for the template code.








