Terraform Associate Exam QuestionsBrowse all questions from this exam

Terraform Associate Exam - Question 277


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

Show Answer
Correct Answer: B

To access all of the attributes and details of a resource managed by Terraform, you would use the command 'terraform state show ‘provider_type.name’'. This command shows the attributes and state details of the specified resource.

Discussion

4 comments
Sign in to comment
Pete987
Aug 23, 2024

B. terraform state show ‘provider_type.name’

heelocoOption: B
Sep 21, 2024

agree Pete987

cajif66766
Nov 6, 2024

terraform state show "aws.instance.example"

LemonadeSoftware
Nov 15, 2024

B This is an example of what I get if I run "terraform state show aws_instance.web": # aws_instance.web: resource "aws_instance" "web" { ami = "ami-0c55b159cbfafe1f0" instance_type = "t2.micro" subnet_id = "subnet-12345678" tags = { Name = "web-instance" } }