Ah, thank you! Actually I have a bit complicated way of creating tables - I have their configuration in the JSON, like that:
"key": {
"title": "id",
"type": "string"
},
"prompGreeting": {
"title": "Prompt Begrüssung",
"type": "string"
},
"promptEmergency": {
"title": "Prompt Emergency",
"type": "string"
},
"promptKosten": {
"title": "Prompt Kosten",
"type": "string"
},
"promptServiceClosed": {
"title": "Prompt Service geschlossen weiterleitung",
"type": "string"
},
"promptServiceOpened": {
"title": "Prompt Service geöffnet weiterleitung",
"type": "string"
},
"promptCards": {
"title": "Prompt Service geöffnet weiterleitung",
"type": "string"
}
}
Then terraform loads it using the file and jsondecode functions and when I am creating the table I have to use this dynamic block to add property to data table resource. And it turns out that somewhere between openning JSON file and creating the table a sotring of the JSON files happened. I did not find out where exactly, instead I slightly modified my JSON file:
{
"1": {
"id": "key",
"title": "id",
"type": "string"
},
"2": {
"id": "promptGreeting",
"title": "Prompt Begrüssung",
"type": "string"
},
"3": {
"id": "promptEmergency",
"title": "Prompt Emergency",
"type": "string"
},
"4": {
"id": "promptKosten",
"title": "Prompt Kosten",
"type": "string"
},
"5": {
"id": "promptServiceClosed",
"title": "Prompt Service geschlossen weiterleitung",
"type": "string"
},
"6": {
"id": "promptServiceOpened",
"title": "Prompt Service geöffnet weiterleitung",
"type": "string"
},
"7": {
"id": "promptCards",
"title": "Prompt Cards",
"type": "string"
},
"8": {
"id": "promptRecording",
"title": "Prompt Cards",
"type": "string"
}
}
And Data Table resource object persists the order. Thank you very much for your help!!