https://pulumi.com logo
Title
f

fancy-crayon-34226

04/12/2023, 10:53 PM
Hi, i am facing a problem. pulumi.String() always return json
pulumi.String(`
{
  "LocalSecondaryIndexes": [
    {
      "IndexName": "domainID",
      "KeySchema": [
        {
          "AttributeName": "domainID",
          "KeyType": "HASH",
          "AttributeType": "S"
        },
        {
          "AttributeName": "timestamp",
          "KeyType": "RANGE",
          "AttributeType": "N"
        }
      ],
      "Projection": {
        "ProjectionType": "ALL"
      }
    }
  ]
}`)
when preview
LocalSecondaryIndexes: (json) {
     LocalSecondaryIndexes: [
          [0]: {
              IndexName : "domainID"
              KeySchema : [
                   [0]: {
                           AttributeName: "domainID"
                           AttributeType: "S"
                           KeyType   : "HASH"
                        }
                   [1]: {
                          AttributeName: "timestamp"
                          AttributeType: "N"
                          KeyType   : "RANGE"
                           }
               ]
                Projection: {
                          ProjectionType: "ALL"
                }}]}
i would like to see plain string instead of jsonArray, how can i achieve it? Thanks in advance.
b

billowy-army-68599

04/12/2023, 11:47 PM
please file a github issue
f

fancy-crayon-34226

04/12/2023, 11:48 PM
sure, but do we have any workaround now?