Terraform providers

From wikinotes
Revision as of 17:31, 25 September 2022 by Will (talk | contribs) (Created page with "Expose resource-types and data-sources that you can use.<br> Several providers are available in the [https://registry.terraform.io/browse/providers terraform registry].<br> Providers are installed when you run <code>terraform init</code> within a terraform directory. = Documentation = <blockquote> {| class="wikitable" |- | providers || https://www.terraform.io/language/providers#providers |- | registry || https://registry.terraform.io/browse/providers |- | version const...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Expose resource-types and data-sources that you can use.
Several providers are available in the terraform registry.
Providers are installed when you run terraform init within a terraform directory.

Documentation

providers https://www.terraform.io/language/providers#providers
registry https://registry.terraform.io/browse/providers
version constraints https://www.terraform.io/language/providers/requirements#version-constraints

Requiring

terraform {
  required_providers {
    mycloud = {
      source  = "mycorp/mycloud"
      version = "~> 1.0"
    }
  }
}

Configuration

Configuration varies by provider.

provider "google" {
  project = "acme-app"
  region  = "us-central1"
}