1. Terraform module is…
- A single S3 object
- Reusable package of Terraform resources
- Only a CI tool
- AWS billing report
Source: doonops-curriculum/terraform-modules--build-local-module.md
Doonops lesson
Wrap your own pattern as module — call from root.
modules/s3-site/ = reusable recipe card. Root module = head chef calling it.
modules/s3-site/ = reusable recipe card. Root module = head chef calling it.
modules/s3-site/ = reusable recipe card. Root module = head chef calling it.
Layman words first, then technical detail — read slowly
root main.tf → module "site" { source = "./modules/doonops-static-site" }Modern HCL — names are examples, not from any third-party course
# see project files
Terraform runs on your computer — copy this HCL into a folder, then follow the local lab steps below.
Full implementation folder — copy all files, then run terraform commands
Copy every file below into one folder — same as a real repo module. Then run the local lab steps.
Suggested folder: Suggested path: ~/doonops-terraform/21-local-module/
versions.tfSee file purpose in the code belowterraform {
required_version = ">= 1.9.0"
}
2–3 quick questions before the next module
Quick check — did this module stick?
1. Terraform module is…