Why IaC over manual provisioning
📖 Scenario: You work as a cloud engineer for a small company. The company wants to set up a simple web server on a cloud provider. They are deciding between creating the server manually through the cloud console or using code to automate the setup.
🎯 Goal: Build a simple Terraform configuration that creates a virtual machine instance. This will show how Infrastructure as Code (IaC) works compared to manual setup.
📋 What You'll Learn
Create a Terraform configuration file named
main.tfDefine a resource for a virtual machine instance with specific properties
Add a variable to configure the instance type
Use the variable in the resource configuration
Add an output to show the instance's public IP address
💡 Why This Matters
🌍 Real World
Cloud engineers use Infrastructure as Code to automate and manage cloud resources reliably and quickly.
💼 Career
Knowing IaC tools like Terraform is essential for roles in cloud operations, DevOps, and infrastructure management.
Progress0 / 4 steps