🔷 Terraform Block

  • Purpose: Used to configure specific Terraform behaviors.

  • Includes:

    • Required Terraform Version

    • List Required Providers

    • Terraform Backend


🟢 Provider Block

  • Purpose: Heart of Terraform – interacts with remote systems.

  • Includes:

    • Declaring providers (e.g., AWS, Azure)

    • Installing providers

    • Provider configurations in the root module

      We define, 
      Terraform Block and Provider Block in c1-versions.tf


🟣 Resource Block

  • Purpose: Defines infrastructure components.

  • Includes:

    • Resource Syntax – How to declare resources

    • Resource Behavior – How Terraform manages them

    • Provisioners – Post-creation tasks

      We define, 
      c2-resource-name.tf