Lookup and extract resource attributes from Terraform state files
Lookup resource attributes in tfstate
tfstate-lookup$ tfstate-lookup -state=terraform.tfstate 'aws_instance.web.id'$ tfstate-lookup -state=terraform.tfstate 'aws_instance.web.private_ip' 'aws_instance.web.public_ip'$ tfstate-lookup -state=terraform.tfstate 'aws_instance.web'