Which of the following commands would you use to access all of the attributes and details of a resource managed by Terraform?
Which of the following commands would you use to access all of the attributes and details of a resource managed by Terraform?
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.
B. terraform state show ‘provider_type.name’
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" } }
terraform state show "aws.instance.example"
agree Pete987