When using providers that require the retrieval of data, such as the HashiCorp Vault provider, in what phase does Terraform actually retrieve the data required?
A.
terraform delete
B.
terraform plan
C.
terraform init
D.
terraform apply
Answer:
C
User Votes:
A
50%
B 1 votes
50%
C
50%
D 2 votes
50%
Discussions
0/ 1000
nassimaelferkhsi
4 months, 1 week ago
When using providers like the HashiCorp Vault provider, which require the retrieval of data, Terraform retrieves that data during the terraform plan phase. During the planning phase, Terraform queries the data sources defined in the configuration (e.g., Vault, AWS, etc.) to gather the necessary information that will be used in the execution plan
Aamir_Ahmed
3 weeks, 5 days ago
The correct answer is:
D. terraform apply
Explanation: When using providers that retrieve dynamic data, such as the HashiCorp Vault provider, Terraform fetches the required data during the apply phase (terraform apply). This is because:
terraform plan (B) only calculates the execution plan and does not retrieve or apply real-time data from external sources. terraform init (C) is used for initializing the working directory and downloading provider plugins, but it does not fetch live data. terraform delete (A) is not a valid Terraform command. The correct command for resource deletion is terraform destroy.
Want to join our community?
Please log in or signup in order to use this feature
When using providers like the HashiCorp Vault provider, which require the retrieval of data, Terraform retrieves that data during the terraform plan phase. During the planning phase, Terraform queries the data sources defined in the configuration (e.g., Vault, AWS, etc.) to gather the necessary information that will be used in the execution plan
The correct answer is:
D. terraform apply
Explanation:
When using providers that retrieve dynamic data, such as the HashiCorp Vault provider, Terraform fetches the required data during the apply phase (terraform apply). This is because:
terraform plan (B) only calculates the execution plan and does not retrieve or apply real-time data from external sources.
terraform init (C) is used for initializing the working directory and downloading provider plugins, but it does not fetch live data.
terraform delete (A) is not a valid Terraform command. The correct command for resource deletion is terraform destroy.