Declaring a provider in required_providers tells Terraform what to install. A provider block tells it how to configure that provider: which region or endpoint to use, which account or project, and sometimes how to authenticate. Provider blocks belong in the root module; reusable child modules should normally not contain them and instead receive configurations from the caller.
Keep reading for free
Create a free StudyToCert account to read the rest of this lesson: 7 more sections, 4 key terms, a real-world example, an exam tip and self-check questions. Every lesson, lab and practice test is free with an account.