Terraform

Manage infrastructure as code with Terraform: providers, resources, variables, plans, state and drift, count and for_each, modules, sensitive values, lifecycle rules, refactoring with moved blocks and CI workflows, with every command run on Terraform 1.16.

कोर्स शुरू करें →

आप क्या सीखेंगे

  • Explain infrastructure as code and run the Terraform init, plan and apply workflow.
  • Write Terraform configuration with providers, resources, variables with validation, locals, outputs and functions.
  • Read plans to tell create, update, replace and destroy apart, and understand state and drift.
  • Create multiple resources with count and for_each, and reuse code with modules.
  • Protect secrets and critical resources, and refactor safely with moved blocks.
  • Keep Terraform code healthy with fmt, validate, plan files and team workflows.

पाठ्यक्रम

Infrastructure as Code With Terraform

  1. Why Infrastructure as Code
  2. init, plan, apply
  3. Providers and Version Constraints

The Configuration Language

  1. Resources and Their Arguments
  2. Variables and Validation
  3. Locals and Outputs
  4. Expressions and Functions

Reading Plans

  1. Anatomy of a Plan
  2. Updates Versus Replacements
  3. Saved Plans and JSON Output

State and Drift

  1. What State Is and How to Inspect It
  2. Drift
  3. Remote State, Locking and Workspaces

Multiple Resources and Modules

  1. count Versus for_each
  2. Modules
  3. Module Sources and Versions

Secrets and Safety Rails

  1. Sensitive Values
  2. Keeping Secrets Out of Code and Safe in State
  3. prevent_destroy and Other Lifecycle Rules

Refactoring and Importing

  1. Renaming With moved Blocks
  2. What Happens Without moved
  3. Importing Existing Resources

Code Quality and Team Workflows

  1. fmt and validate
  2. Plan-Based Review in CI
  3. A Terraform Review Checklist