Question 190
At Fairlake Logistics Networks, an authorized infrastructure engineering team manages a Terraform 1.12 and HCP Terraform environment. The team encounters the following situation: an instance uses a provider attribute with a quoted alias that Terraform interprets as a string rather than a provider reference. Choose the technically best Terraform Associate 004 practice response to this particular infrastructure case. What mechanism explains why the original approach fails?
Explanation
Correct Answer
The provider meta-argument takes a provider configuration reference, not an arbitrary string label. That mechanism distinguishes provider alias local reference syntax in the Fairlake Logistics Networks case. The corresponding appropriate correction is: Set provider = aws.secondary using an unquoted provider configuration reference. The measurable acceptance test is: Validation accepts the intended alias and plan shows target resources.
Incorrect Answers
“Module provider requirements should be separated from environment-specific provider configurations” reflects the mechanism: Module provider requirements should be separated from environment-specific provider configurations. The actual reported symptoms are better explained by: The provider meta-argument takes a provider configuration reference, not an arbitrary string label.
The offered principle describes: Providers implement service-specific resource CRUD and data source operations for Terraform. The situation in this question instead depends on: The provider meta-argument takes a provider configuration reference, not an arbitrary string label. These are different technical conditions.
This alternative is valid when major module changes may break the public input and output contracts. The facts here establish a different controlling reason: The provider meta-argument takes a provider configuration reference, not an arbitrary string label.