Hi Linden, thanks for reaching out.
As you have noticed the output value for TerraformValueOutputs is a serialized JSON value so there are a few ways to deal with this. As you have mentioned you could possibly deal with this using a PowerShell and converting from JSON using a script:
$OctopusParameters["Octopus.Action[Provision RDS].Output.TerraformValueOutputs[rds_address]"] | ConvertFrom-Json
$OctopusParameters["Octopus.Action[Provision RDS].Output.TerraformJsonOutputs[rds_address]"] | ConvertFrom-Json | select -ExpandProperty value
You can also leverage Octostache’s ability to deal with JSON formatted variables as covered in our documentation here. This will, however, require you to use the
TerraformJsonOutputs instead as there is no way to indicate to Octostache that the value from
TerraformValueOutputs is a serialized JSON string value. You should be able to use the following to achieve what you are looking for:
Please let me know if that works for you.