I’m trying to access the current organization’s name in Terraform Cloud to use in terraform_remote_state blocks for accessing outputs from other workspaces - is there a way to get the “current” organization, or do I need to manually specify it as a workspace variable? I’ve just come across the situation where I have a second organization and a hardcoded organization name no longer cuts it.
data "terraform_remote_state" "vpc" {
backend = "remote"
config = {
organization = "my_org"
workspaces = {
name = var.tf_vpc
}
}
}