Terraform for Beginners: Infrastructure as Code on AWS
A hands-on introduction to Terraform that starts with why infrastructure as code exists, then installs Terraform and writes first scripts that provision AWS resources such as EC2 instances and S3 buckets. It goes on to state files, variables, outputs, taint/untaint and modules. It suits developers, sysadmins and aspiring DevOps engineers who have an AWS account and want a practical starting point.
- 14 lessons
- 2h 42m total
- IT & Software
- English
- Earns YodaCoins
Curated by YodaHut. These lessons are hosted on YouTube and produced by their original creators, who are not affiliated with YodaHut. You still earn YodaCoins, keep your streak and track progress here.
What You'll Learn
- Explain what Terraform is and why infrastructure as code is used instead of manual console setup
- Install Terraform on a Linux VM in AWS or locally on Windows
- Set up AWS security credentials so Terraform can authenticate
- Write and run a first Terraform script using the core commands
- Create an EC2 instance with user data and an S3 bucket on AWS
- Use input variables, output variables and the state file
- Use taint and untaint to force a resource to be recreated
- Organise reusable configuration with Terraform modules
Prerequisites
- An AWS account (free tier is enough for the exercises)
- Basic familiarity with cloud concepts such as virtual machines and storage
- Comfort using a command line
Course Curriculum
14 lessons · 2h 42m- 01Why Terraform and What Is Terraform?13:14
- 02Installing Terraform on a Linux VM on AWS8:48
- 03Installing Terraform Locally on Windows7:02
- 04Terraform Security Credentials for AWS9:37
- 05Terraform Architecture and Core Commands5:43
- 06Your First Terraform Script on a Linux VM15:11
- 07Your First Terraform Script Locally on Windows6:21
- 08The Terraform State File15:59
- 09Creating an EC2 VM with User Data8:15
- 10Using Variables in Terraform13:59
- 11Terraform Output Variables10:22
- 12Creating an S3 Bucket on AWS with Terraform9:47
- 13Terraform Taint and Untaint8:55
- 14Terraform Modules28:25
About the Instructor
Telusko
YouTube creator
The lessons in this course were produced by Telusko and are published on YouTube. YodaHut selected and sequenced them into this course; we did not make them, and Telusko is not affiliated with YodaHut.
Visit the channel on YouTubeMore in the Library: IT & Software

Build a Custom PowerPoint Template from Scratch: Cover, Agenda, About Us, Timeline and Process Slides

Build a Pitch Deck Template in PowerPoint, Slide by Slide

Raspberry Pi 5 for Beginners: Headless Setup, GPIO Circuits and Flask Web Control

Raspberry Pi 4 Home Server with OpenMediaVault, Docker and Portainer

Raspberry Pi and the Linux Command Line: Setup, GPIO and Python Projects
