ExamGecko
Question list
Search
Search

Question 129 - Terraform Associate 003 discussion

Report
Export

Which of the following commands would you use to access all of the attributes and details of a resource managed by Terraform?

A.
terraform state list 'provider_type.name'
Answers
A.
terraform state list 'provider_type.name'
B.
terraform state show 'provider_type.name'
Answers
B.
terraform state show 'provider_type.name'
C.
terraform get 'provider_type.name'
Answers
C.
terraform get 'provider_type.name'
D.
terraform state list
Answers
D.
terraform state list
Suggested answer: B

Explanation:

Theterraform state showcommand allows you to access all of the attributes and details of a resource managed by Terraform. You can use the resource address (e.g.provider_type.name) as an argument to show the information about a specific resource. Theterraform state listcommand only shows the list of resources in the state, not their attributes. Theterraform getcommand downloads and installs modules needed for the configuration. It does not show any information about resources.Reference= [Command: state show] and [Command: state list]

asked 18/09/2024
Rohit Kumar
40 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first