I have the following input variable that is being passed into a module:
environments = {
preprod = ["test"]
qat = ["test"]
prod = ["test"]
alpha = ["test"]
}
And I am outputting that value for debugging purposes from the module and the output is shown below:
Changes to Outputs:
+ test = {
+ alpha = [
+ "test",
]
+ preprod = [
+ "test",
]
+ prod = [
+ "test",
]
+ qat = [
+ "test",
]
}
The ordering is important because the module is performing dynamic blocks but it needs to be in a particular order - has anyone seen this behavior before?
I'm not transforming the input variable in any way, in this instant, it is being passed to the module and then output. In the module, a for_each loop is being used but as you can see the ordering is not correct.