Automation, Orchestration, and Scripting
A team's pipeline sometimes installs a newer release of a cloud provider plugin than the one used during testing, causing unexpected plan differences. Where should the team set the allowed provider version so that tofu init selects a consistent release?
Show the answer
Correct answerA. A required_providers block with a version constraint
The required_providers block declares each provider's source and version constraint, which tofu init uses when choosing a plugin. Variable defaults and outputs do not control plugin selection, and lifecycle arguments affect resource behavior only.