Q:

Get local variable in terraform console

Is there any way to get local variables within Terraform console?
> local.name
unknown values referenced, can't compute value

Seems like Terraform console allows only to check input variables and module output variables.
> var.in
2

> module.abc.out
3

Configuration file examples:
# main.tf

locals {
  name = 1
}

variable "in" {
  value = 2
}

module "abc" {
  source "path/to/module"
}

# path/to/module/main.tf

output "out" {
  value = 3
}

A:

Unfortunately, it looks like this is not possible in Terraform v0.11.x, but will be in v0.12 as described in this issue ticket:
https://github.com/hashicorp/terraform/issues/18413
HTH!

