Forum Discussion

mihaic's avatar
Apr 06, 2023

AS3 pool members using a list

I have started to play with AS3. I've tried some examples and they work fine. But I have counter a problem. Maybe it is not possible. I am using Terraform and AS3 data template to configure a vir...
  • JoshBecigneul's avatar
    Apr 07, 2023

    Try removing the square brackets and quotes around the ${MEMBERS} variable in the JSON. I spotted this example from one of Sebastian_Maniak 's guides:

    in the module:
        MY_POOLMEMBERS = jsonencode(var.pool_members)
    in the json:
              "members": [{
                "servicePort": 80,
                "shareNodes": true,
                "serverAddresses": ${MY_POOLMEMBERS}