we have a requirement to pass variables that are generated from the pre-provisiong as outputs to be passed into terraform spec templates in the provisioning phase but we are unable to use the values
we tried the below to get the values,but the values are not being derived.can you please suggest on how this can be done
taskcode is generateHostname,task name:Generate Hostname,Task result :generateHostname.Output
It sounds like you’re trying to access Task results in a later phase, which is not possible. Task results can only be consumed within the same phase. One potential workaround is to use a Write Variables Task to store the results to the Instance map, then read them back into your Tasks in later phases. You can see an example of how Write Attributes works here: Using Morpheus Write Attributes Tasks and XaaS Instances | Morpheus Data - YouTube
When writing the same using write task only see part of map
{“instance_details”:“<%=results.machine_details.instance0%>”,}
‘instance_details’: “{‘ebs_block_device_device_name’: [‘xvdf’”