FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
Terraform Provisioners — FULL HANDS-ON LAB
How-ToDevOps

Terraform Provisioners — FULL HANDS-ON LAB

via Dev.to TutorialAisalkyn Aidarova3h ago

Lab Goal By the end of this lab, students will: Create EC2 using Terraform Use remote-exec → install nginx Use local-exec → save IP locally Use destroy provisioner → cleanup message Observe failure behavior (tainting) Architecture (simple flow) Terraform → AWS EC2 → remote-exec → configure server → local-exec → save IP locally STEP 1 — Prepare Environment 1.1 Create key pair in AWS Name: terraform-key Download: terraform-key.pem 1.2 Move key to project folder provisioner-lab/ ├── main.tf └── terraform-key.pem 1.3 Fix permissions (IMPORTANT) chmod 400 terraform-key.pem Why? SSH will fail if permissions are too open. 1.4 Create Security Group Allow: SSH → 22 HTTP → 80 Example: Type Port Source SSH 22 0.0.0.0/0 HTTP 80 0.0.0.0/0 STEP 2 — Write Terraform Code Create file: main.tf provider "aws" { region = "us-east-1" } resource "aws_instance" "web" { ami = "ami-0c02fb55956c7d316" instance_type = "t2.micro" key_name = "terraform-key" vpc_security_group_ids = [ "sg-xxxxxxxx" ] # replace # --

Continue reading on Dev.to Tutorial

Opens in a new tab

Read Full Article
0 views

Related Articles

You Don’t Need More Tutorials - You Need Better Problems
How-To

You Don’t Need More Tutorials - You Need Better Problems

Medium Programming • 30m ago

Autonomous agents are easy to build. Secure authorization is the hard part.
How-To

Autonomous agents are easy to build. Secure authorization is the hard part.

Medium Programming • 2h ago

This free privacy tool makes it super easy to see which sites are selling your data
How-To

This free privacy tool makes it super easy to see which sites are selling your data

ZDNet • 3h ago

Oupes Mega 1 review: I finally found a portable power station I can store in my truck
How-To

Oupes Mega 1 review: I finally found a portable power station I can store in my truck

ZDNet • 4h ago

I Recreated a $200 TradingView Indicator in Pine Script for Free — Here’s How
How-To

I Recreated a $200 TradingView Indicator in Pine Script for Free — Here’s How

Medium Programming • 4h ago

Discover More Articles