terraform/terraform-state-show

Show Resource Details

Display detailed information about a specific resource

terraform
state
show

Command

terraform state show aws_instance.my_instance

Explanation

Shows the attributes and current state of a resource in Terraform. Useful for debugging or extracting outputs.

Examples

Show details of a database instance

terraform state show module.db.aws_db_instance.main