Terraform

Describe in high level what happens behind the scenes when you run terraform init on on the following Terraform configuration

terraform {
  required_providers {
    aws = {
      source  = "hashicorp/aws"
      version = "~> 3.0"
    }
  }
}

Difficulty: unrated

Source: bregman-arie/devops-exercises by Arie Bregman

Answer

  1. Terraform checks if there is an aws provider in this address: registry.terraform.io/hashicorp/aws
  2. Installs latest version of aws provider (assuming the URL exists and valid)