Exam Terraform Associate All QuestionsBrowse all questions from this 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?

    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
Pete987Option: B

B. terraform state show ‘provider_type.name’

LemonadeSoftwareOption: B

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" } }

cajif66766Option: B

terraform state show "aws.instance.example"

heelocoOption: B

agree Pete987