akamai / cli-terraform

Akamai CLI plugin Admin Support for multiple OpenAPI resource types
Apache License 2.0
21 stars 11 forks source link

DXE-2937 export-property: failure with rule-format v2023-05-30 #58

Closed fkieling closed 10 months ago

fkieling commented 11 months ago

Hi there,

Akamai CLI Version

akamai version 1.5.5 akamai terraform version 1.8.0

Expected Behavior

If i run "akamai terraform export-property --schema" i will get a hcl export of the property.

Actual Behavior

If i run "akamai terraform export-property --schema" and the rule format of the property is v2023-05-30 i get an error:

$ akamai terraform export-property --schema XXXXX Fetching property aaas73.nm-acs.de_ion [OK] Fetching group [OK] Fetching property version [OK] Fetching property rules [OK] Fetching product name [OK] Fetching hostnames [OK] Fetching activation details [OK] Saving TF configurations [FAIL] Error exporting property: saving terraform project files: executing template: rules_v2023-05-30.tmpl: template: rules_v2023-05-30.tmpl:3:12: executing "Text" at : wrong type for value; expected string; got []interface {}

mgwoj commented 11 months ago

Hello @fkieling ,

Is it possible to share content of the rule tree in JSON format (after removing any sensitive information)? Current message is not showing which field is causing this issue and why.

Thanks, Michal

fkieling commented 11 months ago

Hi @mgwoj,

here is the export as json format.

property-snippets.tgz

Regards, Florian

mgwoj commented 11 months ago

Thank you for reporting this issue. It looks that the problem is related to the bug in the schema generator for field logStreamName in the datastream behavior. We will be working on fixing it.

lkowalsk-akamai-com commented 10 months ago

This issue should be resolved with recent release.