In the realm of Terraform, the process of orchestrating cloud resources begins with understanding Terraform resources.
In this journey, we embark on three fundamental tasks:
Task 1 involves creating a security group, Task 2 is about crafting an EC2 instance, and Task 3 guides us in accessing our website for a personal blog.
Let’s explore these tasks and delve into the power of Terraform’s infrastructure as code.
Understanding Terraform Resources
A resource in Terraform represents a component of your infrastructure, such as a physical server, a virtual machine, a DNS record, or an S3 bucket. Resources have attributes that define their properties and behaviors, such as the size and location of a virtual machine or the domain name of a DNS record.
When you define a resource in Terraform, you specify the type of resource, a unique name for the resource, and the attributes that define the resource. Terraform uses the resource block to define resources in your Terraform configuration.