Skip to content
Ameen Abozaid
Planned lessonMID-058-L02

Terraform basics

  • Lesson 2 of 6
  • Mid-level
On This Lesson 4 topics

This lesson is planned. The outline below lists the topics it will cover. The full lesson has not been published yet.

In this lesson

write, plan, and apply a simple configuration.

Planned topics

  • Providers talk to a cloud API; resources are the things created; variables and outputs are inputs and results.
  • Workflow: terraform init, plan (shows the diff), apply.
  • Always read the plan; it shows what will be created, changed, or destroyed.
  • Pin provider and Terraform versions; verify current versions before recording.
Draft outline details

Demonstration

hcl
resource "aws_s3_bucket" "images" {
  bucket = "shop-images-${var.env}"
}
variable "env" { type = string }

(Use the equivalent resource for the chosen provider.)

Check your understanding

Which command shows what will change?

Show answer

terraform plan.

Practice

Apply this lesson with the module's lab, exercises and quiz.

Lab and exercises Quiz

Marking a lesson complete is optional and you can undo it any time. Your progress stays in this browser.

Continue to next lesson

Type to search levels, phases, modules and lessons.