CDKTF accessing Variable Type Object

Hello,

I am having issue while accessing an Object variable type using Terraform Cloud and CDKTF.

In my code, I have

    this._githubCreds = new TerraformVariable(this, `github-creds`, {
      type:  VariableType.object({
        github_url: VariableType.STRING,
        github_username: VariableType.STRING,
      }),
      sensitive: false,
      description: "Github Creds",
      nullable: false,
    });


    new Manifest(this, "git-config", {
      manifest: {
        apiVersion: "v1",
        kind: "ConfigMap",
        metadata:{
          name: this._githubCreds.value.github_url
        },
        spec:{
          username: this._githubCreds.value.github_username
        } 
    },
    });

However, in my cdktf.json. Its coming as blank. I would expect something like
var.github-creds.github_url , but after synth its just blank. and also while planning.

CDKTF.json

"kubernetes_manifest": {
      "git-config": {
        "//": {
          "metadata": {
            "path": "test-gitops/git-config",
            "uniqueId": "git-config"
          }
        },
        "manifest": {
          "apiVersion": "v1",
          "kind": "ConfigMap",
          "metadata": {
          },
          "spec": {
          }
        }
      }
    }

In Terraform Cloud,

FYI, I also tried adding default values, like

    this._githubCreds = new TerraformVariable(this, `github-creds`, {
      type:  VariableType.object({
        github_url: VariableType.STRING,
        github_username: VariableType.STRING,
      }),
      sensitive: false,
      description: "Github Creds",
      nullable: false,
      default: {
        github_url: 'test',
        github_username: 'test1'
     }
    });

Also tried, _this.githubCreds.value["github_username"]

Hi @sabinaya.kc :wave:

The value of a TerraformVariable is a Token because its actual value will only be available during diff and deploy but not while your application code runs.

To access values of a token, you can use Terraform functions as follows:

name: Fn.lookup(this._githubCreds.value, "github_url", "default value")