HashiCorp Terraform Associate 004 Practice Test 47
Question 460
During a separate-region Terraform rollout in an approved staging account, the following condition occurs: A maintenance engineer changes a provider constraint but an existing workspace continues using an older locked plugin even though a newer permitted version is needed. The configuration should behave consistently without broadening access. What targeted engineering response should the team implement?
- Use distinct least-privilege credentials or supported role assumptions for each aliased provider and map resources explicitly.
- Correct the provider's supported credentials or least-privilege permissions without changing a successfully installed plugin.
- Review the upgrade impact and run terraform init -upgrade intentionally, then commit the updated lock selection after validation.
- Declare the provider's correct registry source and compatible version constraint in required_providers, then initialize again.
Explanation
Correct Answer
C:Review the upgrade impact and run terraform init -upgrade intentionally, then commit the updated lock selection after validation. Terraform init normally honors locked versions; -upgrade allows choosing newer compatible selections under the declared constraints. Confirm the cause with: Inspect the version constraint, lock file version, and the difference between ordinary terraform init and terraform init -upgrade behavior. A concrete acceptance test is: The plan uses the reviewed new compatible provider version and the updated lock file captures it for teammates.
Incorrect Answers
A:Use distinct least-privilege credentials or supported role assumptions for each aliased provider and map resources explicitly. This could address multiple provider instances requiring separate authentication, but it does not correct the indicated controlled provider upgrade using init upgrade mechanism. The relevant fix is: Review the upgrade impact and run terraform init -upgrade intentionally, then commit the updated lock selection after validation.
B:Correct the provider's supported credentials or least-privilege permissions without changing a successfully installed plugin. This could address provider authorization versus installation failure, but it does not correct the indicated controlled provider upgrade using init upgrade mechanism. The relevant fix is: Review the upgrade impact and run terraform init -upgrade intentionally, then commit the updated lock selection after validation.
D:Declare the provider's correct registry source and compatible version constraint in required_providers, then initialize again. This could address provider source requirement declaration, but it does not correct the indicated controlled provider upgrade using init upgrade mechanism. The relevant fix is: Review the upgrade impact and run terraform init -upgrade intentionally, then commit the updated lock selection after validation.
Question 461
In a clean CI runner initializing a Terraform root configuration, the following condition occurs: A team expects the Terraform CLI to create cloud database resources without installing the provider named by their resource types. The engineers must keep provider choices and identities reproducible. What measurable postchange observation would confirm that the correction worked?
- The plan uses the reviewed new compatible provider version and the updated lock file captures it for teammates.
- The same initialized provider can read the required resource metadata using an approved identity and the access-denied error disappears.
- Terraform can plan supported target API operations through the selected provider plugin and reports schema errors when arguments are invalid.
- The plan identifies production-account resources under the intended provider configuration while development objects remain separate.
Explanation
Correct Answer
C:Terraform can plan supported target API operations through the selected provider plugin and reports schema errors when arguments are invalid. Terraform core evaluates configuration and resource graphs while provider plugins implement platform-specific CRUD and read behavior. It tests the correction: Install and configure the appropriate provider through terraform init so Terraform can use its resource and data source implementations.
Incorrect Answers
A:The plan uses the reviewed new compatible provider version and the updated lock file captures it for teammates. This might validate controlled provider upgrade using init upgrade, but it does not prove that provider plugin manages api resources and data reads was resolved. Confirm instead: Terraform can plan supported target API operations through the selected provider plugin and reports schema errors when arguments are invalid.
B:The same initialized provider can read the required resource metadata using an approved identity and the access-denied error disappears. This might validate provider authorization versus installation failure, but it does not prove that provider plugin manages api resources and data reads was resolved. Confirm instead: Terraform can plan supported target API operations through the selected provider plugin and reports schema errors when arguments are invalid.
D:The plan identifies production-account resources under the intended provider configuration while development objects remain separate. This might validate provider alias for multiple accounts, but it does not prove that provider plugin manages api resources and data reads was resolved. Confirm instead: Terraform can plan supported target API operations through the selected provider plugin and reports schema errors when arguments are invalid.
Question 462
During a separate-region Terraform rollout in an approved staging account, the following condition occurs: A root configuration defines an alias for a secondary region, but its child module provisions resources in the primary region because the provider mapping is omitted. The configuration should behave consistently without broadening access. What should the engineer inspect FIRST to distinguish this issue from unrelated failures?
- Compare .terraform.lock.hcl checksums and selected versions against required_providers constraints and provider init logs.
- Inspect provider alias blocks and the resource's provider selection, including default identity and account-specific configuration.
- Review the child module provider requirements and root module providers mapping for the child call.
- Check which resource attributes are computed by the provider and how state records them after successful operations.
Explanation
Correct Answer
C:Review the child module provider requirements and root module providers mapping for the child call. Provider configurations are supplied by module callers; module source files do not automatically inherit arbitrary aliases by matching their names. A justified correction is: Pass the correct provider configuration explicitly through the module's providers map and declare configuration_aliases when required. This matters here because during a separate-region Terraform rollout in an approved staging account, the following condition occurs: A root….
Incorrect Answers
A:Compare.terraform.lock.hcl checksums and selected versions against required_providers constraints and provider init logs. This inspects dependency lock file reproducible selection rather than the reported module provider mapping for aliased configurations issue. The decisive investigation is: Review the child module provider requirements and root module providers mapping for the child call.
B:Inspect provider alias blocks and the resource's provider selection, including default identity and account-specific configuration. This inspects provider alias for multiple accounts rather than the reported module provider mapping for aliased configurations issue. The decisive investigation is: Review the child module provider requirements and root module providers mapping for the child call. This matters here because during a separate-region Terraform rollout in an approved staging account, the following condition occurs: A root….
D:Check which resource attributes are computed by the provider and how state records them after successful operations. This inspects resource attribute outputs supplied by state rather than the reported module provider mapping for aliased configurations issue. The decisive investigation is: Review the child module provider requirements and root module providers mapping for the child call.
Question 463
In a clean CI runner initializing a Terraform root configuration, the following condition occurs: A root output refers to the ID of a resource just created, yet another workflow assumes the string is known before the apply finishes. The engineers must keep provider choices and identities reproducible. What measurable postchange observation would confirm that the correction worked?
- The first plan marks unknown values appropriately and a subsequent apply publishes the actual ID through the tracked state.
- The plan uses the reviewed new compatible provider version and the updated lock file captures it for teammates.
- The next plan recognizes existing managed object bindings and avoids duplicate creates for unchanged infrastructure.
- The child module's resources are planned under the intended alternate region rather than silently using the default provider.
Explanation
Correct Answer
A:The first plan marks unknown values appropriately and a subsequent apply publishes the actual ID through the tracked state. State stores known provider-returned attributes and supports dependency references; some values remain unknown until apply. It tests the correction: Use resource references and output values so computed identifiers resolve after creation rather than hardcoding an invented ID.
Incorrect Answers
B:The plan uses the reviewed new compatible provider version and the updated lock file captures it for teammates. This might validate controlled provider upgrade using init upgrade, but it does not prove that resource attribute outputs supplied by state was resolved. Confirm instead: The first plan marks unknown values appropriately and a subsequent apply publishes the actual ID through the tracked state.
C:The next plan recognizes existing managed object bindings and avoids duplicate creates for unchanged infrastructure. This might validate state binding between resource address and remote object, but it does not prove that resource attribute outputs supplied by state was resolved. Confirm instead: The first plan marks unknown values appropriately and a subsequent apply publishes the actual ID through the tracked state.
D:The child module's resources are planned under the intended alternate region rather than silently using the default provider. This might validate module provider mapping for aliased configurations, but it does not prove that resource attribute outputs supplied by state was resolved. Confirm instead: The first plan marks unknown values appropriately and a subsequent apply publishes the actual ID through the tracked state.
Question 464
During a controlled module integration test for a production Terraform stack, the following condition occurs: A reusable subnet module expects each entry to contain a CIDR and an enable flag, but callers submit unstructured strings and fail validation. The desired fix must avoid unrelated resource changes. Which TWO complementary choices identify the cause and implement the appropriate fix? Select TWO.
- Inspect variable blocks for type/default arguments and the module call for an explicitly supplied input value.
- Inspect the module's input type constraint and the shape of the supplied nested values.
- Declare a suitable object type such as object({ cidr = string, enabled = bool }) and supply matching attribute values.
- Declare the token input as ephemeral = true and pass it only into compatible runtime contexts such as provider configuration.
- Use an appropriate map type with key-based lookup or redesign the input as a list if order-based indexing is truly intended.
Explanation
Correct Answers
B:Inspect the module's input type constraint and the shape of the supplied nested values. Structured object types validate named attribute contracts; a plain string cannot substitute for an object with multiple typed fields. A justified correction is: Declare a suitable object type such as object({ cidr = string, enabled = bool }) and supply matching attribute values. This forms one element of the required two-step diagnosis and correction. This matters here because during a controlled module integration test for a production Terraform stack, the following condition occurs: A….
C:Declare a suitable object type such as object({ cidr = string, enabled = bool }) and supply matching attribute values. Structured object types validate named attribute contracts; a plain string cannot substitute for an object with multiple typed fields. Confirm the cause with: Inspect the module's input type constraint and the shape of the supplied nested values. A concrete acceptance test is: Invalid caller objects fail early, while well-typed nested values reach their intended configuration expressions. This forms one element of the required two-step diagnosis and correction. This matters here because during a controlled module integration test for a production Terraform stack, the following condition occurs: A….
Incorrect Answers
A:Inspect variable blocks for type/default arguments and the module call for an explicitly supplied input value. This relates to variable default versus required input rather than the matching diagnosis-and-remediation pair required here. Check: Inspect the module's input type constraint and the shape of the supplied nested values. Then change: Declare a suitable object type such as object({ cidr = string, enabled = bool }) and supply matching attribute values.
D:Declare the token input as ephemeral = true and pass it only into compatible runtime contexts such as provider configuration. This relates to ephemeral variable for short-lived token in terraform 1.12 rather than the matching diagnosis-and-remediation pair required here. Check: Inspect the module's input type constraint and the shape of the supplied nested values. Then change: Declare a suitable object type such as object({ cidr = string, enabled = bool }) and supply matching attribute values.
E:Use an appropriate map type with key-based lookup or redesign the input as a list if order-based indexing is truly intended. This relates to map versus list addressing for environment inputs rather than the matching diagnosis-and-remediation pair required here. Check: Inspect the module's input type constraint and the shape of the supplied nested values. Then change: Declare a suitable object type such as object({ cidr = string, enabled = bool }) and supply matching attribute values. This matters here because during a controlled module integration test for a production Terraform stack, the following condition occurs: A….
Question 465
When maintaining Terraform modules used by several application teams, the following condition occurs: A network module is upgraded and renames a child output, but dependent modules still read the old output and planning fails. The module interface must remain stable and reviewable. Which TWO complementary choices identify the cause and implement the appropriate fix? Select TWO.
- Update the module version together with dependent output references and validate the full root configuration before applying.
- Pin the Git module source to a reviewed immutable commit or controlled tag and update it through an explicit change review.
- Compare the upgraded module's documented input/output contract to root references before approving the module version change.
- Inspect the module source value and the repository layout relative to the directory containing the calling module.
- Use for_each on the module block with a stable keyed collection and pass each.key or each.value to the child input contract.
Explanation
Correct Answers
A:Update the module version together with dependent output references and validate the full root configuration before applying. Module version changes can alter interfaces; compatibility is assessed across callers, not by module installation success alone. Confirm the cause with: Compare the upgraded module's documented input/output contract to root references before approving the module version change. A concrete acceptance test is: The root plan resolves the new module output names with no dangling references or unintended replacements. This forms one element of the required two-step diagnosis and correction. This matters here because when maintaining Terraform modules used by several application teams, the following condition occurs: A network….
C:Compare the upgraded module's documented input/output contract to root references before approving the module version change. Module version changes can alter interfaces; compatibility is assessed across callers, not by module installation success alone. A justified correction is: Update the module version together with dependent output references and validate the full root configuration before applying. This forms one element of the required two-step diagnosis and correction. This matters here because when maintaining Terraform modules used by several application teams, the following condition occurs: A network….
Incorrect Answers
B:Pin the Git module source to a reviewed immutable commit or controlled tag and update it through an explicit change review. This relates to git module ref pin rather than floating main branch rather than the matching diagnosis-and-remediation pair required here. Check: Compare the upgraded module's documented input/output contract to root references before approving the module version change. Then change: Update the module version together with dependent output references and validate the full root configuration before applying. This matters here because when maintaining Terraform modules used by several application teams, the following condition occurs: A network….
D:Inspect the module source value and the repository layout relative to the directory containing the calling module. This relates to local child module source path resolution rather than the matching diagnosis-and-remediation pair required here. Check: Compare the upgraded module's documented input/output contract to root references before approving the module version change. Then change: Update the module version together with dependent output references and validate the full root configuration before applying.
E:Use for_each on the module block with a stable keyed collection and pass each.key or each.value to the child input contract. This relates to for_each at module call for multiple environments rather than the matching diagnosis-and-remediation pair required here. Check: Compare the upgraded module's documented input/output contract to root references before approving the module version change. Then change: Update the module version together with dependent output references and validate the full root configuration before applying.
Question 466
During a controlled module integration test for a production Terraform stack, the following condition occurs: An operator adds a Terraform check asserting that an HTTP service is healthy and expects a failed check to halt the same apply as a mandatory precondition. The desired fix must avoid unrelated resource changes. Which TWO complementary choices identify the cause and implement the appropriate fix? Select TWO.
- Use for_each over stable unique names and migrate existing addresses with reviewed moved blocks where appropriate.
- Add a variable validation block with an appropriate condition and useful error_message for unacceptable CIDR input.
- Inspect the chosen custom condition mechanism and whether its failure is advisory or blocking for the intended Terraform version.
- Inspect the repository for embedded secrets and review supported Vault provider/ephemeral integration and token access policy.
- Use a resource precondition or postcondition for a hard lifecycle invariant and reserve check blocks for non-blocking validation reports.
Explanation
Correct Answers
C:Inspect the chosen custom condition mechanism and whether its failure is advisory or blocking for the intended Terraform version. Check blocks generally issue warnings rather than blocking applies; lifecycle conditions enforce resource pre/post invariants. A justified correction is: Use a resource precondition or postcondition for a hard lifecycle invariant and reserve check blocks for non-blocking validation reports. This forms one element of the required two-step diagnosis and correction. This matters here because during a controlled module integration test for a production Terraform stack, the following condition occurs: An….
E:Use a resource precondition or postcondition for a hard lifecycle invariant and reserve check blocks for non-blocking validation reports. Check blocks generally issue warnings rather than blocking applies; lifecycle conditions enforce resource pre/post invariants. Confirm the cause with: Inspect the chosen custom condition mechanism and whether its failure is advisory or blocking for the intended Terraform version. A concrete acceptance test is: A violated mandatory invariant stops the controlled operation, while optional service checks report diagnostic results appropriately. This forms one element of the required two-step diagnosis and correction. This matters here because during a controlled module integration test for a production Terraform stack, the following condition occurs: An….
Incorrect Answers
A:Use for_each over stable unique names and migrate existing addresses with reviewed moved blocks where appropriate. This relates to for_each stable identity instead of count index rather than the matching diagnosis-and-remediation pair required here. Check: Inspect the chosen custom condition mechanism and whether its failure is advisory or blocking for the intended Terraform version. Then change: Use a resource precondition or postcondition for a hard lifecycle invariant and reserve check blocks for non-blocking validation reports.
B:Add a variable validation block with an appropriate condition and useful error_message for unacceptable CIDR input. This relates to input variable custom validation rule rather than the matching diagnosis-and-remediation pair required here. Check: Inspect the chosen custom condition mechanism and whether its failure is advisory or blocking for the intended Terraform version. Then change: Use a resource precondition or postcondition for a hard lifecycle invariant and reserve check blocks for non-blocking validation reports.
D:Inspect the repository for embedded secrets and review supported Vault provider/ephemeral integration and token access policy. This relates to vault credential lookup without hardcoding secret values rather than the matching diagnosis-and-remediation pair required here. Check: Inspect the chosen custom condition mechanism and whether its failure is advisory or blocking for the intended Terraform version. Then change: Use a resource precondition or postcondition for a hard lifecycle invariant and reserve check blocks for non-blocking validation reports.
Question 467
In a clean CI runner initializing a Terraform root configuration, the following condition occurs: Two engineers initialize the same project at different times and unexpectedly use different provider binaries after compatible new releases appear. The engineers must keep provider choices and identities reproducible. What acceptance evidence best establishes that the Terraform issue has been resolved?
- Two clean checkouts select the reviewed compatible provider binaries rather than silently upgrading independently.
- The same initialized provider can read the required resource metadata using an approved identity and the access-denied error disappears.
- The child module's resources are planned under the intended alternate region rather than silently using the default provider.
- Routine initialization stays within the intended major version while explicit change review governs the next major update.
Explanation
Correct Answer
A:Two clean checkouts select the reviewed compatible provider binaries rather than silently upgrading independently. Version constraints define acceptable releases; the dependency lock file records concrete chosen provider selections and checksums. It tests the correction: Commit the dependency lock file for a root configuration and use ordinary terraform init to honor its selected provider versions.
Incorrect Answers
B:The same initialized provider can read the required resource metadata using an approved identity and the access-denied error disappears. This might validate provider authorization versus installation failure, but it does not prove that dependency lock file reproducible selection was resolved. Confirm instead: Two clean checkouts select the reviewed compatible provider binaries rather than silently upgrading independently.
C:The child module's resources are planned under the intended alternate region rather than silently using the default provider. This might validate module provider mapping for aliased configurations, but it does not prove that dependency lock file reproducible selection was resolved. Confirm instead: Two clean checkouts select the reviewed compatible provider binaries rather than silently upgrading independently.
D:Routine initialization stays within the intended major version while explicit change review governs the next major update. This might validate provider version range semantics, but it does not prove that dependency lock file reproducible selection was resolved. Confirm instead: Two clean checkouts select the reviewed compatible provider binaries rather than silently upgrading independently.
Question 468
As an infrastructure team integrates an existing repository with HCP Terraform, the following condition occurs: A platform administrator copies the same nonsecret provider region and organization policy values into 20 workspaces, and copies drift apart after an update. The workflow must apply least privilege and preserve workspace isolation. What measurable postchange observation would confirm that the correction worked?
- Teams locate and administer their approved workspaces without accidentally gaining access to unrelated project state.
- A noncompliant plan is rejected at policy evaluation while a compliant plan continues through its required approvals.
- The CLI can access the authorized workspace while provider API access remains governed by separate scoped identities.
- A shared setting update reaches exactly the approved workspaces while unrelated projects retain independent configuration.
Explanation
Correct Answer
D:A shared setting update reaches exactly the approved workspaces while unrelated projects retain independent configuration. HCP variable sets centralize common workspace variables; explicit assignment scope prevents accidental cross-project changes. It tests the correction: Create a controlled HCP Terraform variable set scoped to the intended workspaces and remove conflicting duplicated values. This matters here because as an infrastructure team integrates an existing repository with HCP Terraform, the following condition occurs: A….
Incorrect Answers
A:Teams locate and administer their approved workspaces without accidentally gaining access to unrelated project state. This might validate hcp projects group workspaces by ownership, but it does not prove that hcp workspace variable sets share scoped configuration was resolved. Confirm instead: A shared setting update reaches exactly the approved workspaces while unrelated projects retain independent configuration. This matters here because as an infrastructure team integrates an existing repository with HCP Terraform, the following condition occurs: A….
B:A noncompliant plan is rejected at policy evaluation while a compliant plan continues through its required approvals. This might validate hcp terraform policy enforcement governance, but it does not prove that hcp workspace variable sets share scoped configuration was resolved. Confirm instead: A shared setting update reaches exactly the approved workspaces while unrelated projects retain independent configuration.
C:The CLI can access the authorized workspace while provider API access remains governed by separate scoped identities. This might validate hcp terraform cli login and execution credentials, but it does not prove that hcp workspace variable sets share scoped configuration was resolved. Confirm instead: A shared setting update reaches exactly the approved workspaces while unrelated projects retain independent configuration. This matters here because as an infrastructure team integrates an existing repository with HCP Terraform, the following condition occurs: A….
Question 469
During a clean initialization of a newly composed infrastructure root module, the following condition occurs: A root module duplicates nearly identical module blocks for every application name, causing the staging and QA copies to diverge in their configurations. The team must preserve reproducibility across callers. Which TWO options together provide the relevant diagnosis and its targeted remediation? Select TWO.
- Create a reusable child module with a documented input/output contract and call it from each application's root module.
- Use for_each on the module block with a stable keyed collection and pass each.key or each.value to the child input contract.
- Pin the Git module source to a reviewed immutable commit or controlled tag and update it through an explicit change review.
- Compare the upgraded module's documented input/output contract to root references before approving the module version change.
- Inspect which module arguments vary and whether stable application keys can drive repeated module instances.
Explanation
Correct Answers
B:Use for_each on the module block with a stable keyed collection and pass each.key or each.value to the child input contract. Module calls support for_each to create keyed instances of reusable infrastructure components with stable addresses. Confirm the cause with: Inspect which module arguments vary and whether stable application keys can drive repeated module instances. A concrete acceptance test is: New applications gain consistent module behavior and removing one key does not renumber unrelated module instances. This forms one element of the required two-step diagnosis and correction.
E:Inspect which module arguments vary and whether stable application keys can drive repeated module instances. Module calls support for_each to create keyed instances of reusable infrastructure components with stable addresses. A justified correction is: Use for_each on the module block with a stable keyed collection and pass each.key or each.value to the child input contract. This forms one element of the required two-step diagnosis and correction.
Incorrect Answers
A:Create a reusable child module with a documented input/output contract and call it from each application's root module. This relates to module blocks reuse standard infrastructure patterns rather than the matching diagnosis-and-remediation pair required here. Check: Inspect which module arguments vary and whether stable application keys can drive repeated module instances. Then change: Use for_each on the module block with a stable keyed collection and pass each.key or each.value to the child input contract.
C:Pin the Git module source to a reviewed immutable commit or controlled tag and update it through an explicit change review. This relates to git module ref pin rather than floating main branch rather than the matching diagnosis-and-remediation pair required here. Check: Inspect which module arguments vary and whether stable application keys can drive repeated module instances. Then change: Use for_each on the module block with a stable keyed collection and pass each.key or each.value to the child input contract.
D:Compare the upgraded module's documented input/output contract to root references before approving the module version change. This relates to module upgrade plan review with changed outputs rather than the matching diagnosis-and-remediation pair required here. Check: Inspect which module arguments vary and whether stable application keys can drive repeated module instances. Then change: Use for_each on the module block with a stable keyed collection and pass each.key or each.value to the child input contract.
Question 470
In a clean CI runner initializing a Terraform root configuration, the following condition occurs: An engineer embeds cloud credentials inside required_providers and expects Terraform to authenticate because the source and version were specified there. The engineers must keep provider choices and identities reproducible. Which proposed remediation solves this failure without masking its cause?
- Keep provider source and version in required_providers and configure authentication via supported provider settings or short-lived environment credentials.
- Install and configure the appropriate provider through terraform init so Terraform can use its resource and data source implementations.
- Commit the dependency lock file for a root configuration and use ordinary terraform init to honor its selected provider versions.
- Move state to an access-controlled encrypted backend, restrict readers, and avoid storing secret inputs where ephemeral paths are supported.
Explanation
Correct Answer
A:Keep provider source and version in required_providers and configure authentication via supported provider settings or short-lived environment credentials. Plugin installation requirements and runtime provider configuration are different parts of Terraform's execution model. Confirm the cause with: Review provider requirement declarations, provider configuration blocks, and the platform's supported authentication mechanisms. A concrete acceptance test is: Initialization installs the intended plugin and authenticated operations use the proper provider configuration without credentials in version declarations. This matters here because in a clean CI runner initializing a Terraform root configuration, the following condition occurs: An engineer embeds….
Incorrect Answers
B:Install and configure the appropriate provider through terraform init so Terraform can use its resource and data source implementations. This could address provider plugin manages api resources and data reads, but it does not correct the indicated provider block credentials versus required_providers mechanism. The relevant fix is: Keep provider source and version in required_providers and configure authentication via supported provider settings or short-lived environment credentials. This matters here because in a clean CI runner initializing a Terraform root configuration, the following condition occurs: An engineer embeds….
C:Commit the dependency lock file for a root configuration and use ordinary terraform init to honor its selected provider versions. This could address dependency lock file reproducible selection, but it does not correct the indicated provider block credentials versus required_providers mechanism. The relevant fix is: Keep provider source and version in required_providers and configure authentication via supported provider settings or short-lived environment credentials.
D:Move state to an access-controlled encrypted backend, restrict readers, and avoid storing secret inputs where ephemeral paths are supported. This could address state as sensitive operational metadata, but it does not correct the indicated provider block credentials versus required_providers mechanism. The relevant fix is: Keep provider source and version in required_providers and configure authentication via supported provider settings or short-lived environment credentials.