nerdexam
HashiCorp

TERRAFORM-ASSOCIATE-003 · Question #51

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

The correct answer is A. Terraform state show ` provider_type_name. This is the command that you would use to access all of the attributes and details of a resource managed by Terraform, by providing the resource address as an argument. For example, terraform state show 'aws_instance.example' will show you all the information about the AWS…

Implement and maintain state

Question

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

Options

  • ATerraform state show ` provider_type_name
  • BTerraform state list
  • CTerraform get provider_type_name
  • DTerraform state list provider_type_name

How the community answered

(43 responses)
  • A
    79% (34)
  • B
    2% (1)
  • C
    12% (5)
  • D
    7% (3)

Explanation

This is the command that you would use to access all of the attributes and details of a resource managed by Terraform, by providing the resource address as an argument. For example, terraform state show 'aws_instance.example' will show you all the information about the AWS instance named example.

Topics

#terraform state show#resource attributes#state inspection#CLI commands

Community Discussion

No community discussion yet for this question.

Full TERRAFORM-ASSOCIATE-003 Practice