terraform state show aws_instance.web

Category: IaC & Automation

terraform state show aws_instance.web

Show full attributes of one state resource

Prints every recorded attribute and metadata for the resource at the given address, such as instance IDs and IP addresses. This is the fastest way to look up values Terraform knows about before scripting against them. Related: terraform state list.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.