provider
What is provider?
provider: A plugin that lets Terraform talk to a platform (AWS, GCP, Cloudflare, GitHub). It exposes the resources and data sources you can manage. A provider in Terraform is a plugin that knows how to talk to one platform's API: AWS, Google Cloud, DigitalOcean, Cloudflare, GitHub and hundreds more. It defines which resources and data sources you can use.
Frequently asked questions about provider
How is provider used in practice?
You declare providers in your configuration, terraform init downloads them, and the provider block holds settings like the region. Credentials should come from environment variables or a secure source, not from the configuration file.
What should you keep in mind with provider?
Pin provider versions in a required_providers block, and commit the lock file, so upgrades happen deliberately. Provider upgrades can change behaviour or deprecate settings, so read the changelog and run a plan before applying. One project can use several providers together, for example creating a server at one provider and its DNS record at another.
What does an example of provider look like?
provider "aws" { region = "eu-central-1" } At a glance
| Category | Terraform |
|---|---|
| Explained by | Reinier de la Parra |
| Updated |