When trying to setup a terraform config for using the akamai terraform export-property tool, an error exporting a PM config with --schema option, on the last step, Saving TF configurations fails with an error
Error exporting property: saving terraform project files: executing template: rules_v2023-09-20.tmpl: template: multiline.tmpl:3:15: executing "Text" at <IsMultiline>: wrong type for value; expected string; got float64
the error appears on v2023-01-05 rule formats as well.
I think I've found the solution though.
In the config I want to export, there are a number of Origin server behaviours with Custom Certificate Authority Set certificates imported (Amazon and Starfield certs), resulting in json rules like this...
The serialNumber field is the only place in the rule tree I can see that contains a value that appears to be a "float" datatype (as referred to in the initial error).
Having gone through the PM config in the ACC console I removed the custom certs from each Origin server behaviour and saved the config, rerunning the terrform export-property command, it now completes successfully.
Expected behaviour
The terraform export-property command should complete with the custom certs inplace in the origin server behaviour.
Issue
When trying to setup a terraform config for using the akamai terraform export-property tool, an error exporting a PM config with
--schema option
, on the last step,Saving TF configurations
fails with an errorthe error appears on
v2023-01-05
rule formats as well.I think I've found the solution though. In the config I want to export, there are a number of Origin server behaviours with
Custom Certificate Authority Set
certificates imported (Amazon and Starfield certs), resulting in json rules like this...The
serialNumber
field is the only place in the rule tree I can see that contains a value that appears to be a "float" datatype (as referred to in the initial error).Having gone through the PM config in the ACC console I removed the custom certs from each Origin server behaviour and saved the config, rerunning the terrform export-property command, it now completes successfully.
Expected behaviour
The terraform export-property command should complete with the custom certs inplace in the origin server behaviour.