https://pulumi.com logo
Title
g

gifted-electrician-66436

03/20/2022, 7:29 AM
Hi guys, i got stuck with ssm string manipulation (Typescript Pulumi AWS), what i need :
"dnsIpAddresses": [
          "10.0.2.66",
          "10.0.1.148"
        ]
What I get :
"dnsIpAddresses": [
            "10.0.2.108,10.0.1.47"
          ]
My code :
"dnsIpAddresses": ["${barDirectory.dnsIpAddresses}"]
My silly solution :
"dnsIpAddresses": ["${barDirectory.dnsIpAddresses[0]}", "${barDirectory.dnsIpAddresses[1]}"]
Any suggestion guys? thx a lot for your time
e

echoing-dinner-19531

03/20/2022, 1:11 PM
Does "dnsIpAddresses" have to be
string[]
? Can it be
Inpput<string[]>
because then you could just pass barDirectory.dnsIpAddresses directly probably