ExamGecko
Question list
Search
Search

Question 150 - Terraform Associate 003 discussion

Report
Export

You can access state stored with the local backend by using terraform_remote_state data source.

A.
True
Answers
A.
True
B.
False
Answers
B.
False
Suggested answer: B

Explanation:

You cannot access state stored with the local backend by using the terraform_remote_state data source. The terraform_remote_state data source is used to retrieve the root module output values from some other Terraform configuration using the latest state snapshot from the remote backend. It requires a backend that supports remote state storage, such as S3, Consul, AzureRM, or GCS. The local backend stores the state file locally on the filesystem, which terraform_remote_state cannot access.

Terraform documentation on terraform_remote_state data source: Terraform Remote State Data Source

Example usage of remote state: Example Usage (remote Backend)

asked 18/09/2024
Andrey Zhukovskiy
36 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first